/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

.brf-parking-wrapper {
    font-family: 'Montserrat', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    color: #1f2937;
}

/* Header & Typography */
.brf-parking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}



/* Grid Layout */
.brf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Cards */
.brf-card {
    background: #ffffff;
    border: none;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.brf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.brf-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9ca3af, #d1d5db);
    /* Gray gradient */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brf-card:hover::before {
    opacity: 1;
}

.brf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.brf-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

/* Price Tags */
.brf-price {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.brf-price-free {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Card Body */
.brf-card-body {
    margin-bottom: 25px;
    flex-grow: 1;
}

.brf-date {
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brf-date strong {
    color: #111827;
    font-weight: 600;
}

.brf-desc {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Buttons */
.brf-btn {
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.brf-btn-primary {
    background: #111827;
    /* Dark elegant */
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.brf-btn-primary:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.brf-btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.brf-btn-success:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.brf-book-btn {
    background: #111827;
    border: none;
    color: #ffffff;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.brf-book-btn:hover {
    background: #000000;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

/* Form */
.brf-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.brf-form-group {
    margin-bottom: 20px;
}

.brf-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.brf-form-group input:not([type="checkbox"]):not([type="radio"]) {
    width: auto;
    min-width: 250px;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #f9fafb;
}

.brf-form-group input:focus {
    outline: none;
    border-color: #111827;
    background: #ffffff;
}

#brf-spot-price {
    min-width: 100px;
    width: 100%;
}



/* Modal */
.brf-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.1);
    /* Knappt synlig */
    backdrop-filter: blur(4px);
}

.brf-modal-content {
    background-color: #ffffff;
    margin: 10vh auto;
    /* 15% from the top and centered */
    padding: 40px;
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.brf-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #9ca3af;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.brf-close:hover {
    color: #111827;
}

#brf-modal-swish {
    font-family: 'Montserrat', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin: 20px 0;
    color: #111827;
    letter-spacing: 0.05em;
    background: #f3f4f6;
    padding: 15px;
    border-radius: 12px;
}

/* Type Selector */
.brf-type-selector {
    display: flex;
    gap: 15px;
    background: #f3f4f6;
    padding: 6px;
    border-radius: 14px;
}

.brf-type-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.2s ease;
    color: #6b7280;
}

.brf-type-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.brf-section-title {
    font-size: 1.75rem;
    margin-bottom: 25px;
    color: #111827;
    border-left: 4px solid #111827;
    padding-left: 15px;
}

/* Wanted Card Special Styles */
.brf-card-wanted::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.brf-card-wanted .brf-price {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
}

/* Form layout improvements */
/* (Currently handled by JS/Display) */

/* Responsive */
@media (max-width: 600px) {
    .brf-parking-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .brf-type-selector {
        width: 100%;
        justify-content: center;
    }

    .brf-form-group[style*="flex"] {
        flex-direction: column;
    }
}

/* Empty State */
.brf-no-spots {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #6b7280;
    margin-top: 20px;
}