.hotel-filter-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Filter Buttons & Info --- */
.last-updated-time {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.hotel-listings-count {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.hotel-filter-buttons {
    display: flex;
    flex-direction: column;
    align-items: left;
    margin-bottom: 20px;
}

.price-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.type-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    row-gap: 10px;
    justify-content: left;
    width: 100%;
}

.filter-button {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-button:hover {
    background: #f5f5f5;
}

.filter-button.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* --- Champion Podium Layout --- */
.champion-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 2%;
    padding: 20px 0;
    flex-wrap: wrap;
    background-image: url('../images/podium.png');
    background-size: 25% auto;
    background-repeat: no-repeat;
    background-position: center bottom;
    min-height: 600px;
}

.champion-podium .hotel-card {
    width: 28%;
    min-width: 300px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.podium-rank-2 { order: 1; margin-bottom: 6%; }
.podium-rank-1 { order: 2; margin-bottom: 15%; }
.podium-rank-3 { order: 3; margin-bottom: 6%; }

.ranking-separator {
    text-align: center;
    margin: 40px 0 20px;
    border-bottom: 1px solid #ddd;
    line-height: 0.1em;
}

/* --- Regular Listings --- */
.hotel-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-top: 20px;
}

/* --- Card Base Style --- */
.hotel-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.hotel-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}

.hotel-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hotel-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.package-name {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 12px;
    min-height: 40px; /* Ensure consistent height */
}

.hotel-rating {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.star {
    color: #ffc107;
}

.rating-text {
    margin-left: 8px;
}

.review-count {
    color: #777;
}

.hotel-price {
    margin: auto 0 12px 0; /* Pushes price down */
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e53935;
}

.price-prefix {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
}

.original-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.booking-button {
    display: block;
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: auto; /* Pushes button to bottom */
}

.booking-button:hover {
    background-color: #0056b3;
}

/* --- Champion & Ranking Styles --- */
.ranking-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    z-index: 2;
    color: white;
    background-color: rgba(0,0,0,0.4);
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Rank 1: Gold */
.hotel-card.rank-1 {
    border: 3px solid #ffd700;
    background: linear-gradient(to top, #ffffff, #fffbeb);
}
.hotel-card.rank-1 .ranking-number {
    background-color: #ffd700;
    color: #4c3d00;
    border-color: #fff9e0;
}
.hotel-card.rank-1 .hotel-name::before {
    content: '👑';
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Rank 2: Silver */
.hotel-card.rank-2 {
    border: 2px solid #c0c0c0;
    background: linear-gradient(to top, #ffffff, #f9f9f9);
}
.hotel-card.rank-2 .ranking-number {
    background-color: #c0c0c0;
    color: #3e3e3e;
    border-color: #f0f0f0;
}
.hotel-card.rank-2 .hotel-name::before {
    content: '🥈';
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Rank 3: Bronze */
.hotel-card.rank-3 {
    border: 2px solid #cd7f32;
    background: linear-gradient(to top, #ffffff, #fff5eb);
}
.hotel-card.rank-3 .ranking-number {
    background-color: #cd7f32;
    color: white;
    border-color: #ffe8d1;
}
.hotel-card.rank-3 .hotel-name::before {
    content: '🥉';
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .champion-podium {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        background-image: none; /* Hide podium on mobile */
        min-height: auto;
        padding: 20px 0;
    }

    .champion-podium .hotel-card {
        width: 80%;
        max-width: 400px;
        margin-bottom: 0 !important; /* Reset margin */
    }
    
    /* Re-order for mobile view (1, 2, 3) */
    .podium-rank-1 { order: 1; }
    .podium-rank-2 { order: 2; }
    .podium-rank-3 { order: 3; }

    .hotel-listings {
        grid-template-columns: 1fr;
    }
}
