/* === SEARCH RESULTS PAGE SPECIFIC STYLES === */

.results-meta {
    max-width: 1280px;
    margin: 16px auto 12px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #475569;
}

.results-count strong {
    color: #0f172a;
}

.results-info {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.results-info:hover {
    text-decoration: underline;
}

/* === RESULTS LAYOUT === */
.results-layout {
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-sizing: border-box;
}

.hotels-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hotel Result Card */
.hotel-result-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06), 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
    min-height: 240px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hotel-result-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hotel-card-left {
    display: flex;
    flex: 1;
    min-width: 0;
}

.hotel-image-carousel {
    width: 250px;
    height: 100%;
    position: relative;
    background-color: #e5e7eb;
    flex-shrink: 0;
}

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

.popular-choice-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    z-index: 2;
    transition: background-color 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.heart-btn:hover {
    background: #ffffff;
    color: #ef4444;
}

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-dots .dot.active {
    background-color: #ffffff;
    width: 8px;
    height: 8px;
}

.hotel-details-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.hotel-header-info {
    margin-bottom: 8px;
}

.hotel-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.stars {
    color: #f59e0b;
    font-size: 12px;
}

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

.rating-score {
    background-color: #1e3a8a;
    color: #ffffff;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.rating-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
}

.rating-reviews-count {
    font-size: 12px;
    color: #64748b;
}

.hotel-feature-location {
    font-size: 13px;
    color: #0f766e;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 8px 0;
}

.hotel-description {
    font-size: 13px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

/* Hotel Card Right Side - Pricing & CTA */
.hotel-card-right {
    width: 240px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fafafb;
    flex-shrink: 0;
    box-sizing: border-box;
}

.discount-badge {
    background-color: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-bottom: 8px;
}

.partner-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
}

.our-lowest-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.price-stay-total {
    font-size: 12px;
    color: #475569;
    font-weight: 500;
    margin-bottom: 2px;
}

.price-taxes-info {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 12px;
}

.btn-view-deal {
    background-color: #007fad;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-view-deal:hover {
    background-color: #00668a;
}

.alternative-deals {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 12px;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.alt-deal-item {
    font-size: 12px;
    color: #475569;
    display: flex;
    justify-content: space-between;
}

.alt-deal-item span {
    font-weight: 700;
    color: #0f172a;
}

.alt-deal-arrow {
    position: absolute;
    bottom: -6px;
    right: 0;
    color: #94a3b8;
    cursor: pointer;
}

/* Map Sidebar */
.map-sidebar {
    width: 320px;
    height: 600px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    position: sticky;
    top: 80px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.map-sidebar iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === MOBILE RESPONSIVE ADAPTATIONS (MOBILE FIRST/APP-LIKE) === */
@media (max-width: 992px) {
    .results-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .map-sidebar {
        width: 100%;
        height: 250px;
        position: static;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {
    /* Responsive stacked header styling for search page */
    .header {
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        padding: 12px 16px !important;
        gap: 12px !important;
        border-bottom: 1px solid #e2e8f0;
        background-color: #ffffff;
    }

    .header .logo-container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .header-search-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
    }

    .header-search-box {
        width: 100% !important;
        height: 44px !important;
        padding: 2px 4px 2px 12px !important;
        box-sizing: border-box;
        border-radius: 22px !important;
    }

    .header-search-field label {
        font-size: 8px !important;
        margin-bottom: 1px;
    }

    .header-search-field input, 
    .header-search-field .value {
        font-size: 11px !important;
    }

    .header-actions {
        display: none !important; /* Hide secondary actions on mobile search header */
    }

    .results-meta {
        padding: 0 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .results-layout {
        padding: 0 12px;
    }

    .hotel-result-card {
        flex-direction: column;
        min-height: auto;
        border-radius: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        background-color: #ffffff;
    }

    .hotel-card-left {
        flex-direction: row;
        width: 100%;
        height: 180px;
    }

    .hotel-image-carousel {
        width: 125px;
        min-width: 125px;
        height: 100%;
    }

    .hotel-details-content {
        padding: 12px;
        gap: 2px;
        justify-content: space-between;
    }

    .hotel-name {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 2px;
        max-height: 38px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .stars {
        font-size: 9px;
    }

    .rating-row {
        gap: 4px;
        margin-bottom: 4px;
    }

    .rating-score {
        font-size: 10px;
        padding: 1px 4px;
    }

    .rating-label {
        font-size: 11px;
    }

    .rating-reviews-count {
        font-size: 10px;
    }

    .hotel-feature-location {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .hotel-description {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hotel-card-right {
        width: 100%;
        border-left: none;
        border-top: 1px solid #f1f5f9;
        background-color: #f8fafc;
        padding: 12px 16px;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto auto !important;
        grid-template-areas: 
            "lowest button"
            "price button"
            "total button" !important;
        align-items: center;
        gap: 2px 12px;
        box-sizing: border-box;
    }

    .discount-badge {
        display: none !important;
    }

    .partner-title {
        display: none !important;
    }

    .our-lowest-label {
        grid-area: lowest;
        font-size: 10px;
        font-weight: 600;
        color: #64748b;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .price-amount {
        grid-area: price;
        font-size: 24px;
        font-weight: 800;
        color: #0f172a;
        margin: 0;
        line-height: 1.1;
    }

    .price-stay-total {
        grid-area: total;
        font-size: 11px;
        color: #475569;
        margin: 0;
        font-weight: 500;
    }

    .price-taxes-info {
        display: none !important;
    }

    .btn-view-deal {
        grid-area: button;
        width: auto !important;
        height: 42px !important;
        padding: 0 20px !important;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        box-sizing: border-box;
    }

    .alternative-deals {
        display: none !important;
    }
}

/* Horizontal scrollable filter bar on mobile */
@media (max-width: 600px) {
    .filters-bar {
        padding: 8px 0;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .filters-container {
        display: inline-flex;
        gap: 8px;
        padding: 0 16px;
    }
    
    .filter-btn {
        display: inline-flex;
        padding: 6px 14px;
        font-size: 12px;
    }
}
