/* Hotels page — builds on style.css (same navy & gold variables) */

a.logo {
    text-decoration: none;
}

.nav-links li a.active {
    color: var(--gold);
}

/* Page Banner */
.page-banner {
    padding: 160px 0 90px;
    background: linear-gradient(rgba(26, 26, 46, 0.75), rgba(26, 26, 46, 0.85)),
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1920') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.page-banner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-banner h1 span {
    color: var(--gold);
}

/* Only the last word of the title is gold */
.page-banner h1 .title-start {
    color: inherit;
}

/* Filters */
.hotel-filters {
    background: var(--white);
    padding: 0 0 20px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -45px;
    position: relative;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.filter-search {
    flex: 2;
    min-width: 220px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.filter-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 12px;
}

.filter-input i {
    color: var(--gold);
    margin-right: 8px;
}

.filter-input input,
.filter-group select {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 11px 0;
    border: none;
    outline: none;
    width: 100%;
    background: transparent;
    color: var(--text-color);
}

.filter-group select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 11px 12px;
    cursor: pointer;
}

.filter-input:focus-within,
.filter-group select:focus {
    border-color: var(--gold);
}

.btn-reset {
    font-family: inherit;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-reset:hover {
    background: var(--gold);
}

/* Near me: two big buttons above the filters */
.hotels-nearme {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: -45px;
    position: relative;
    text-align: center;
}

/* The filter bar now sits below the near-me card instead of over the banner */
.hotels-nearme + .filter-bar {
    margin-top: 20px;
}

.hotels-nearme-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.hotels-locate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1 1 260px;
    max-width: 420px;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 18px 25px;
    background: var(--gold);
    color: var(--primary-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.35);
    transition: 0.3s;
}

.hotels-locate i {
    font-size: 1.4rem;
}

.hotels-locate:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.hotels-locate:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 3px;
}

.hotels-locate:disabled,
.hotels-locate-selected:disabled {
    opacity: 0.7;
    cursor: wait;
}

.hotels-privacy {
    font-size: 0.8rem;
    color: #777;
    margin-top: 10px;
}

.hotels-geo-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 640px;
    margin: 15px auto 0;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--light-gray);
}

.hotels-geo-status.success {
    background: rgba(212, 175, 55, 0.12);
}

.hotels-geo-status.error {
    background: #fdecea;
    color: #8a1c13;
}

.hotels-open-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
}

/* Google Maps search (wilaya + accommodation type) */
.btn-maps-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 12px 22px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Results */
.hotels {
    padding: 40px 0 80px;
    background: #fafafa;
}

.price-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid var(--gold);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.price-notice i {
    color: var(--gold);
    font-size: 1.2rem;
    margin-top: 3px;
}

.results-count {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Hotel Card */
.hotel-card {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.hotel-card:hover {
    transform: scale(1.03);
}

.hotel-image {
    position: relative;
    height: 220px;
    background: var(--primary-blue);
}

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

.hotel-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.5;
}

.city-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-blue);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
}

.city-badge i {
    color: var(--gold);
    margin-right: 5px;
}

/* Accommodation type, top corner opposite the city */
.type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

[dir="rtl"] .type-badge {
    right: auto;
    left: 15px;
}

/* Credit line for free (Wikimedia Commons) photos of the area */
.hotel-photo-credit {
    margin-top: 12px;
}

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

.hotel-stars {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.hotel-info h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 5px;
}

.hotel-location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.hotel-description {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin-bottom: 20px;
}

.hotel-amenities li {
    font-size: 0.75rem;
    background: var(--light-gray);
    padding: 4px 10px;
    border-radius: 20px;
}

.hotel-amenities i {
    color: var(--gold);
    margin-right: 4px;
}

.hotel-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Price: link to the official or booking site (no price is displayed) */
.btn-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    border: 1px solid var(--gold);
    padding: 7px 14px;
    border-radius: 5px;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-price i {
    color: var(--gold);
}

.btn-price:hover {
    background: var(--gold);
}

.btn-price:hover i {
    color: var(--primary-blue);
}

.price-on-request {
    display: inline-block;
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

.btn-map {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 16px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.no-results .btn-maps-search {
    margin-top: 20px;
}

.no-results .btn-maps-search i {
    display: inline;
    font-size: inherit;
    color: inherit;
    margin: 0;
}

.no-results > i {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-banner { padding: 130px 0 80px; }
    .page-banner h1 { font-size: 2rem; }
    .filter-bar { padding: 20px; }
    .filter-group, .filter-search { flex: 1 1 100%; }
    .btn-reset, .filter-bar .btn-maps-search { width: 100%; }
    .hotels-nearme { padding: 20px; }
    .hotels-locate { font-size: 1.05rem; padding: 16px 18px; max-width: none; }
    .hotel-grid { grid-template-columns: 1fr; }
}
