/* =========================================
   HOTELS - FRONTEND
========================================= */

/* Section */
.hotels-section {
    padding: 60px 0 80px;
    background: #f8f9fb;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.hotels-section .section-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Filters Bar */
.filters-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    background: #fff;
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 32px;
}

.filters-bar__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 140px;
}

.filters-bar__label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filters-bar__select,
.filters-bar__input {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.filters-bar__select:focus,
.filters-bar__input:focus {
    border-color: #21356a;
}

.filters-bar__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Map toggle button */
.btn-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-map-toggle--active {
    background: var(--primary-color, #21356a);
    color: #fff;
    border-color: var(--primary-color, #21356a);
}

/* Map overlay fullscreen */
.hotels-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    background: #fff;
}

.hotels-map-overlay__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.hotels-map-overlay__close:hover {
    background: #f3f4f6;
}

.hotels-map {
    width: 100%;
    height: 100%;
}

/* Google Maps InfoWindow card style */
.gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: visible !important;
}

.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}

/* Hide native InfoWindow close button */
.gm-style-iw-c button,
.gm-ui-hover-effect {
    display: none !important;
}

.gm-style-iw-d .hotel-card {
    box-shadow: none;
    border-radius: 0;
}

.gm-style-iw-d .hotel-card:hover {
    transform: none;
}

.gm-style-iw-d .hotel-card__body {
    padding: 12px 14px;
}

.gm-style-iw-d .hotel-card__name {
    font-size: 15px;
    margin-bottom: 4px;
}

.gm-style-iw-d .hotel-card__desc {
    display: none;
}

/* Hotels Grid */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Hotel Card */
.hotel-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.hotel-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.hotel-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f3f4f6;
}

.hotel-card__stars {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 6px;
}

.hotel-card__body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hotel-card__name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px 0;
}

.hotel-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.hotel-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 12px 0;
    flex: 1;
}

.hotel-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

.hotel-card__price {
    font-size: 14px;
    color: #6b7280;
}

.hotel-card__price strong {
    color: #21356a;
    font-size: 16px;
}

.hotel-card__cta {
    font-size: 13px;
    font-weight: 600;
    color: #21356a;
    transition: color 0.2s;
}

.hotel-card:hover .hotel-card__cta {
    color: #1a2b55;
}

/* Empty state */
.hotels-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hotels-empty h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin: 16px 0 8px;
}

.hotels-empty p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* Hero subtitle */
.hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-top: 16px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .hotels-grid {
        grid-template-columns: 1fr;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filters-bar__group {
        width: 100%;
    }

    .hotels-section {
        padding: 40px 0 60px;
    }

}
