/* Hero Section */
.hotels-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.hotels-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hotels-hero h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hotel-type-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}
.hotel-type-badge.domestic {
    background: #E8F7EE;
    color: #177245;
}
.hotel-type-badge.international {
    background: #E8F0FE;
    color: var(--brand);
}

.hotel-preview-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0A58CA, #2563EB);
    color: #fff;
    box-shadow: 0 12px 24px rgba(10, 88, 202, 0.18);
    font-weight: 800;
    padding: 0.8rem 1rem;
}
.hotel-preview-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}
.hotel-favorite-soft {
    border: 1px solid #E2E8F0;
    background: #F8FAFC;
    color: #475569;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.72rem 0.95rem;
}
.hotel-favorite-soft:hover {
    background: #EEF2FF;
    border-color: #C7D2FE;
    color: #4338CA;
}

.hotel-results-loading {
    opacity: 0.45;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

#hotelResultsPanel {
    position: relative;
    transition: opacity 0.2s ease;
}

#hotelResultsPanel.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

#hotelResultsPanel.is-loading::after {
    content: '';
    position: absolute;
    top: 72px;
    left: 50%;
    width: 42px;
    height: 42px;
    margin-left: -21px;
    border: 3px solid rgba(10, 88, 202, 0.16);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: hotelResultsSpin 0.75s linear infinite;
    z-index: 3;
}

@keyframes hotelResultsSpin {
    to { transform: rotate(360deg); }
}

.hotel-stay-nights-btn {
    min-height: 38px;
    border: 1px solid #BFDBFE;
    border-radius: 20px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    color: #0A58CA;
    font-weight: 900;
    font-size: 0.82rem;
    line-height: 1.4;
    padding: 0.45rem 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hotel-stay-nights-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #93C5FD;
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    box-shadow: 0 8px 18px rgba(10, 88, 202, 0.14);
    color: #0947A8;
}

.hotel-stay-nights-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hotel-search-filters > [class*="col-"] {
    min-width: 0;
}

.hotel-search-filters .hotel-guests-picker {
    width: 100%;
}

.hotel-search-filters .hotel-guests-trigger {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.hotel-search-filters .hotel-search-submit-btn {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.hotel-guests-footer {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #EEF2F7;
}

#hotelNightsModal .modal-content {
    border-radius: 16px;
    border: 0;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

#hotelNightsModal #hotelNightsInput {
    font-weight: 800;
    font-size: 1.35rem;
}

.star-filter-label {
    cursor: pointer;
    transition: all 0.2s;
}
.star-filter-label:hover {
    transform: translateX(4px);
}
.star-filled {
    color: #FBBF24;
}

.hotel-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: white;
}
.hotel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.hotel-image {
    overflow: hidden;
    min-height: 220px;
}
.hotel-image img {
    transition: transform 0.4s ease;
}
.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}
.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.rating-box {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    font-weight: 700;
    min-width: 44px;
    text-align: center;
}
.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
}
.currency {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
}

.badge-purple {
    background: #8B5CF6;
    color: white;
}
.bg-purple {
    background: #8B5CF6;
}

@media (max-width: 768px) {
    .filter-card {
        margin-top: -30px;
    }
    .hotel-card .row {
        flex-direction: column;
    }
    .hotel-image {
        height: 200px;
    }
    .price {
        font-size: 1.2rem;
    }
}

.filter-card {
    padding: 12px 0;
}

.hotel-card-title-link {
    transition: color 0.2s ease;
}

.hotel-card-title-link:hover {
    color: #0A58CA !important;
}

.hotel-guests-picker {
    position: relative;
}

.hotel-guests-trigger {
    width: 100%;
    min-height: 38px;
    border: 1px solid #dee2e6;
        border-radius: 20px;
    background: #fff;
    color: #1E293B;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.75rem;
    text-align: right;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hotel-guests-trigger i:first-child {
    color: #0A58CA;
    font-size: 1.05rem;
}

.hotel-guests-trigger small {
    display: block;
    color: #64748B;
    font-size: 0.68rem;
    line-height: 1.2;
}

.hotel-guests-trigger strong {
    display: block;
    font-size: 0.82rem;
    color: #1E293B;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hotel-guests-picker.active .hotel-guests-trigger {
    border-color: #0A58CA;
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.12);
}

.hotel-guests-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(310px, calc(100vw - 48px));
    background: #fff;
    border: 1px solid #E6EAF0;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    padding: 12px;
    display: none;
    z-index: 1081;
}

.hotel-guests-picker.active .hotel-guests-menu {
    display: block;
    animation: hotelGuestsMenuIn 0.18s ease;
}

@keyframes hotelGuestsMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.hotel-guests-menu .guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #EEF2F7;
}

.hotel-guests-menu .guest-row:last-child {
    border-bottom: 0;
}

.hotel-guests-menu .guest-row span small {
    display: block;
    color: #64748B;
    font-size: 0.68rem;
    margin-top: 2px;
}

.hotel-guests-menu .stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hotel-guests-menu .stepper button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #EEF2F7;
    color: #1E293B;
    font-weight: 900;
    line-height: 1;
}

.hotel-guests-menu .stepper button:hover {
    background: #0A58CA;
    color: #fff;
}
