/* ─────────────────────────────────────────
   hotel.css  —  mirrors flight.css structure
───────────────────────────────────────── */

/* Page wrapper */
.hotel-page-wrapper {
    max-width: 1180px;
    margin: 0 auto;
}

/* Search card */
.hotel-search-card {
    border-radius: 18px !important;
    border: 1px solid rgba(6, 34, 72, 0.05);
}

/* Results card */
.hotel-results-card {
    border-radius: 18px !important;
    border: 1px solid rgba(6, 34, 72, 0.05);
    min-height: 300px;
}

/* ── Hotel Card ── */
.hotel-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hotel-card {
    border: 1px solid #eef0f5;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}

.hotel-card:hover {
    box-shadow: 0 6px 24px rgba(0, 53, 128, 0.10);
    transform: translateY(-2px);
}

/* Image column */
.hotel-card-img {
    width: 180px;
    min-width: 180px;
    height: 160px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.hotel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-img-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #003580;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Body */
.hotel-card-body {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hotel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.hotel-card-info {
    flex: 1;
}

.hotel-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.hotel-location {
    font-size: 12px;
}

/* Amenity badges */
.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.amenity-badge {
    background: #f0f4ff;
    color: #003580;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #dce4f5;
}

/* Price column */
.hotel-card-price {
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-text {
    font-size: 20px;
    font-weight: 700;
    color: #003580;
    white-space: nowrap;
}

/* ── Popular Destinations Grid ── */
.popular-dest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.dest-card {
    border: 1px solid #eef0f5;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background: #fff;
}

.dest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.dest-emoji {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.dest-info {
    padding: 10px 12px;
}

.dest-city {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
}

/* ── Offers ── */
.hotel-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.hotel-offer-card {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.offer-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.offer-tag {
    display: inline-block;
    margin-top: 5px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── Guest Dropdown (same as traveller-dropdown in flight) ── */
.traveller-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 260px;
    display: none;
    border: 1px solid #dce4f5;
    margin-top: 4px;
}

.traveller-dropdown.show {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .hotel-card {
        flex-direction: column;
    }

    .hotel-card-img {
        width: 100%;
        min-width: unset;
        height: 180px;
    }

    .hotel-card-top {
        flex-direction: column;
    }

    .hotel-card-price {
        align-items: flex-start;
        min-width: unset;
    }

    .popular-dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .hotel-offers-grid {
        grid-template-columns: 1fr;
    }
}

/* xsmall utility (same as flight.css) */
.xsmall {
    font-size: 11px !important;
}
#hotelCityList {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

#hotelCityList .list-group-item {
    cursor: pointer;
    border-left: none;
    border-right: none;
    font-size: 13px;
}

#hotelCityList .list-group-item:hover {
    background: #f0f5ff;
}