/* ════════════════════════════════════════════════════════════════
   search_bar.css  –  Search Bar component styles (Centered Rectangle)
════════════════════════════════════════════════════════════════ */
:root {
    --gold: #c9a84c;
    --gold-light: #e8c97a;
    --deep: #061120;
    --navy: #0b1a2e;
    --teal: #1a6b82;
    --fog: rgba(201, 168, 76, 0.12);
    --white: #fff;
}

/* ── SEARCH BAR WRAPPER ── */
.search-bar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    width: 100%;
    position: relative;
    z-index: 1000;
}

.search-bar-container {
    width: 100%;
    max-width: 1000px;
    background: linear-gradient(135deg, rgba(15, 37, 64, 0.97) 0%, rgba(10, 28, 51, 0.97) 100%);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: sb-cardIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1001;
}

@keyframes sb-cardIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── TITLE ── */
.sb-title {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #c9a84c, #e8c97a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    opacity: 0.9;
    text-align: center;
    font-weight: 600;
}

/* ── SEARCH BAR FORM ── */
.search-bar-form {
    width: 100%;
}

/* ── FIELDS CONTAINER ── */
.search-bar-fields {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* ── FIELD BASE ── */
.sb-field {
    flex: 1;
    min-width: 140px;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    cursor: pointer;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.sb-field:hover {
    border-color: rgba(201, 168, 76, 0.4);
    background: rgba(201, 168, 76, 0.05);
}

.sb-field.active {
    border-color: #c9a84c;
    background: rgba(201, 168, 76, 0.08);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.sb-field .sf-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
}

.sb-field .sf-label {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 2px;
    font-weight: 500;
}

.sb-field .sf-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-field .sf-sub {
    font-size: 9px;
    color: #c9a84c;
    opacity: 0.7;
    letter-spacing: 1px;
    margin-top: 2px;
    white-space: nowrap;
}

/* ── CURRENCY SELECT ── */
.sf-currency-select {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--gold-light);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    margin-top: 4px;
}
.sf-currency-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}
.sf-currency-select option {
    background: var(--navy);
    color: var(--white);
}

/* ── SEARCH BUTTON ── */
.sb-search-btn {
    flex: 0 0 auto;
    background: linear-gradient(135deg, #c9a84c 0%, #e8c97a 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    color: #0f2540;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.sb-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.45);
}

.sb-search-btn:active {
    transform: scale(0.98);
}

.sb-search-btn .sb-icon {
    font-size: 16px;
}

/* ════════════════════════════════════════════════════════════════
   MONTH DROPDOWN OVERLAY (Original Size, Fixed Position)
════════════════════════════════════════════════════════════════ */

.month-dropdown {
    position: fixed;
    width: 260px;
    background: linear-gradient(160deg, #0f2540 0%, #0a1c33 100%);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    z-index: 1000 !important;
    overflow: hidden;
    display: none;
    animation: sb-dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.month-dropdown.open {
    display: block;
}

@keyframes sb-dropIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Month year row */
.md-year-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 8px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.md-yr-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: #c9a84c;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.md-yr-btn:hover {
    background: rgba(201, 168, 76, 0.25);
}

.md-yr-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.md-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 10px 10px 12px;
}

.md-month-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 7px 4px;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.md-month-btn:hover {
    background: rgba(201, 168, 76, 0.12);
    color: #e8c97a;
    border-color: rgba(201, 168, 76, 0.2);
}

.md-month-btn.selected {
    background: #c9a84c;
    color: #0f2540;
    font-weight: 600;
    border-color: #c9a84c;
}

.md-month-btn.past {
    opacity: 0.25;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════
   ROOMS OVERLAY MODAL
════════════════════════════════════════════════════════════════ */

.rooms-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000 !important;
    backdrop-filter: blur(5px);
    animation: fade-in 0.3s ease;
}

.rooms-overlay.open {
    display: flex;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.rooms-modal {
    background: linear-gradient(160deg, #0f2540 0%, #0a1c33 100%);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modal-slide-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.05);
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: #c9a84c;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

.rooms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.room-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    transition: all 0.2s;
    gap: 12px;
}

.room-row:hover {
    background: rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.4);
}

.room-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-label {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2px;
}

.adults-label {
    font-size: 11px;
    color: #c9a84c;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.adults-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid rgba(201, 168, 76, 0.3);
    color: #c9a84c;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    min-width: 28px;
}

.counter-btn:hover {
    background: rgba(201, 168, 76, 0.3);
    transform: scale(1.1);
}

.counter-btn:active {
    transform: scale(0.95);
}

.counter-value {
    min-width: 40px;
    text-align: center;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1;
}

.remove-room-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6464;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.remove-room-btn:hover {
    background: rgba(255, 80, 80, 0.3);
    transform: scale(1.1);
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(201, 168, 76, 0.05);
}

.modal-add-btn {
    flex: 1;
    padding: 10px 16px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px dashed rgba(201, 168, 76, 0.4);
    border-radius: 8px;
    color: #c9a84c;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-add-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: rgba(201, 168, 76, 0.6);
}

.modal-done-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #c9a84c 0%, #e8c97a 100%);
    border: none;
    border-radius: 8px;
    color: #0f2540;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

.modal-done-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 168, 76, 0.45);
}

.modal-done-btn:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar-container {
        padding: 16px;
    }

    .search-bar-fields {
        flex-direction: column;
    }

    .sb-field {
        width: 100%;
    }

    .sb-search-btn {
        width: 100%;
    }

    .rooms-modal {
        width: 95%;
        max-width: 100%;
    }
}

