/* hotels.css - Styling for the Hotels page */

:root {
    --primary-dark: #041b3b;
    --accent-yellow: #fdbb2d;
    --accent-hover: #e5a828;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
}

body {
    background-color: #f8fafc;
    font-family: 'Poppins', sans-serif;
}

/* ===== HERO SECTION ===== */
.hotel-hero {
    position: relative;
    background: linear-gradient(to right, rgba(4, 27, 59, 0.95) 0%, rgba(4, 27, 59, 0.6) 50%, rgba(4, 27, 59, 0.2) 100%), url('landing/assets/images/herosection.webp') center/cover;
    color: white;
    padding: 80px 0 120px 0; /* Extra bottom padding for the floating search bar */
}

.hotel-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hotel-hero p {
    font-size: 15px;
    max-width: 500px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

/* ===== FLOATING SEARCH BAR ===== */
.hotel-search-bar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-field {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0 16px;
    position: relative;
}

.search-field:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: var(--border-color);
}

.search-icon {
    color: var(--text-muted);
    font-size: 20px;
    margin-top: 4px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.search-input-group label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
}

.search-input-group input, .search-input-group select {
    border: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
    padding: 0;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.search-input-group input::placeholder {
    color: var(--primary-dark);
}

.btn-search {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-search:hover {
    background: var(--accent-hover);
}

/* ===== MAIN LAYOUT ===== */
.hotel-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 80px;
}

/* ===== SIDEBAR ===== */
.pkg-sidebar {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    align-self: start;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h5 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--primary-dark);
}

.clear-all-btn {
    font-size: 12px;
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
}

.filter-section {
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.filter-section-body {
    padding: 0 20px 20px;
    display: none;
}
.filter-section.open .filter-section-body {
    display: block;
}
.filter-section-toggle {
    transition: 0.3s;
    transform: rotate(180deg);
}
.filter-section.open .filter-section-toggle {
    transform: rotate(0);
}

.search-dest-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
    outline: none;
}

.filter-check-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    cursor: pointer;
}

.check-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-wrap input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-yellow);
}

.filter-count {
    font-size: 12px;
    color: #94a3b8;
}

.show-more-btn {
    font-size: 12px;
    color: #3B82F6;
    background: none;
    border: none;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

.apply-filters-btn {
    width: 100%;
    padding: 14px;
    background: #f1f5f9;
    border: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.apply-filters-btn:hover {
    background: #e2e8f0;
}

/* ===== PRICE SLIDER ===== */
.price-range-wrapper {
    margin-top: 10px;
}

.price-range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--accent-yellow) 0%, var(--accent-yellow) 50%, var(--border-color) 50%, var(--border-color) 100%);
    outline: none;
    margin-bottom: 12px;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--accent-yellow);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ===== STARS ===== */
.star-color {
    color: var(--accent-yellow);
    font-size: 12px;
}

/* ===== TOP BAR ===== */
.hotel-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hotel-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.sort-dropdown select {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    outline: none;
    cursor: pointer;
}

/* ===== HOTEL CARD (LIST VIEW) ===== */
.hotel-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: 0.3s;
}

.hotel-card:hover {
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.hotel-img-wrap {
    width: 300px;
    position: relative;
    flex-shrink: 0;
}

.hotel-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
}

.hotel-heart {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.hotel-heart:hover, .hotel-heart.liked {
    color: #ef4444;
}

.hotel-info-wrap {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hotel-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.hotel-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.hotel-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.hotel-amenities {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.hotel-amenities i {
    color: var(--primary-dark);
    opacity: 0.7;
}

.hotel-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.hotel-price-wrap {
    width: 200px;
    border-left: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
}

.rating-badge-row {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.rating-score {
    background: #22C55E;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
}

.rating-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-dark);
}

.rating-reviews {
    font-size: 11px;
    color: var(--text-muted);
}

.price-row {
    margin-top: 20px;
    margin-bottom: 16px;
}

.price-amount {
    font-size: 22px;
    font-weight: 800;
    color: #ef4444; /* matching the red/orange price color */
    margin: 0;
}

.price-night {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-taxes {
    font-size: 10px;
    color: #94a3b8;
}

.hotel-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-details {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.btn-details:hover {
    background: #f1f5f9;
}

.btn-rooms {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: var(--accent-yellow);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: 0.3s;
}

.btn-rooms:hover {
    background: var(--accent-hover);
}

/* ===== PAGINATION ===== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-item {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.page-item.active {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: var(--primary-dark);
    font-weight: 700;
}

.page-item:hover:not(.active) {
    background: #f1f5f9;
}

.page-dots {
    color: var(--text-muted);
}

/* ===== BOTTOM BANNERS ===== */
.features-banner {
    background: #fff8eb; /* soft yellow bg */
    border-radius: 12px;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-item i {
    font-size: 32px;
    color: var(--accent-yellow);
}

.feature-item h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 4px 0;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.newsletter-banner {
    background: var(--primary-dark);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.newsletter-content h3 span {
    color: var(--accent-yellow);
    font-family: cursive; /* simple script font imitation */
}

.newsletter-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-input-group {
    display: flex;
    background: white;
    border-radius: 8px;
    padding: 6px;
    width: 400px;
}

.newsletter-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 13px;
}

.newsletter-input-group button {
    background: var(--accent-yellow);
    color: var(--primary-dark);
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}

.newsletter-privacy {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .hotel-layout {
        grid-template-columns: 1fr;
    }
    .pkg-sidebar {
        display: none; /* Can implement mobile drawer later */
    }
    .hotel-search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-field:not(:last-child)::after {
        display: none;
    }
    .search-field {
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
    }
    .hotel-card {
        flex-direction: column;
    }
    .hotel-img-wrap {
        width: 100%;
        height: 200px;
    }
    .hotel-price-wrap {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .rating-badge-row {
        align-items: flex-start;
    }
    .price-row {
        margin: 0;
    }
    .hotel-actions {
        width: auto;
        min-width: 150px;
    }
    .features-banner {
        flex-direction: column;
        gap: 20px;
    }
    .newsletter-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .newsletter-input-group {
        width: 100%;
    }
}
