/**
 * Hotels Theme Bold — Listing page styles.
 *
 * Custom hero (lp-) + parent output overrides (hl-).
 * Sharp corners, border-hover, dark hero, geometric fonts.
 */

/* ═══════════════════════════════════════════
   PAGE BACKGROUND
   ═══════════════════════════════════════════ */

.bold-listings-page.hl-page {
    background: var(--theme-bg-white);
}

/* ═══════════════════════════════════════════
   HERO  (lp- prefix — custom HTML)
   ═══════════════════════════════════════════ */

.lp-hero {
    background: var(--theme-primary);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.lp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.lp-hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.lp-hero-content {
    max-width: 640px;
}

.lp-hero-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--theme-accent-on-dark); /* #60a5fa — 5.88:1 vs #1e1e2e dark hero ✓ */
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(96, 165, 250, 0.4); /* matches --theme-accent-on-dark */
}

.lp-hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
}

.lp-hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 520px;
}

.lp-hero-subtitle p {
    margin: 0;
}

/* Hero stats */
.lp-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lp-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lp-stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-accent);
    line-height: 1;
    display: flex;
    align-items: center;
}

.lp-stat-number svg {
    color: var(--theme-accent);
}

.lp-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.lp-stat-divider {
    width: 1px;
    height: 2.5rem;
    background: rgba(255,255,255,0.12);
}

/* Hero decorative visual */
.lp-hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
}

.lp-hero-grid-accent {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(59,130,246,0.15);
    transform: rotate(45deg);
}

.lp-hero-grid-accent::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 2px solid rgba(59,130,246,0.1);
}

.lp-hero-grid-accent::after {
    content: '';
    position: absolute;
    inset: 40px;
    background: rgba(59,130,246,0.06);
    border: 2px solid rgba(59,130,246,0.08);
}

/* ═══════════════════════════════════════════
   POPULAR DESTINATIONS BAR
   ═══════════════════════════════════════════ */

.lp-destinations {
    background: var(--theme-bg-light);
    border-bottom: 1px solid var(--theme-border);
    padding: 1rem 0;
}

.lp-destinations-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.lp-destinations-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-text-light);
    white-space: nowrap;
}

.lp-destinations-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lp-dest-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--theme-text-dark);
    background: var(--theme-bg-white);
    border: 1px solid var(--theme-border);
    text-decoration: none;
    transition: all var(--theme-transition);
}

.lp-dest-chip:hover {
    border-color: var(--theme-accent);
    color: var(--theme-accent);
}

.lp-dest-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--theme-accent);
    background: rgba(59,130,246,0.08);
    padding: 0.1rem 0.4rem;
    min-width: 1.4rem;
    text-align: center;
}

/* ═══════════════════════════════════════════
   NO RESULTS
   ═══════════════════════════════════════════ */

.lp-no-results {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--theme-text-light);
}

.lp-no-results svg {
    color: var(--theme-border);
    margin-bottom: 1.5rem;
}

.lp-no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--theme-text-dark);
    margin: 0 0 0.5rem;
}

.lp-no-results p {
    font-size: 1rem;
    margin: 0;
}

/* Extended content prose */
.lp-prose {
    padding: 3rem 0;
    line-height: 1.7;
    color: var(--theme-text);
}

.lp-prose h2,
.lp-prose h3 {
    font-family: var(--font-heading);
    color: var(--theme-text-dark);
}

/* ═══════════════════════════════════════════
   FILTER BAR — parent output overrides
   ═══════════════════════════════════════════ */

.bold-listings-page .hl-filter-bar {
    background: var(--theme-bg-white) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--theme-border);
    position: sticky;
    top: 60px;
    z-index: 90;
    transition: border-color var(--theme-transition);
}

.admin-bar .bold-listings-page .hl-filter-bar {
    top: 92px;
}

.bold-listings-page .hl-filter-bar.scrolled {
    box-shadow: none !important;
    border-bottom-color: var(--theme-accent);
}

/* Filter inner container */
.bold-listings-page .hl-filter-bar-inner {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1rem 0;
}

/* Filter groups */
.bold-listings-page .hl-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bold-listings-page .hl-filter-group.hl-filter-search {
    flex: 1;
}

/* Filter labels */
.bold-listings-page .hl-filter-bar label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--theme-text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
}

.bold-listings-page .hl-filter-bar label svg {
    color: var(--theme-accent);
}

/* Filter selects/inputs — sharp */
.bold-listings-page .hl-filter-bar select,
.bold-listings-page .hl-filter-bar .hl-filter-input {
    border-radius: 0 !important;
    border: 1px solid var(--theme-border);
    color: var(--theme-text-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.55rem 0.75rem;
    background-color: var(--theme-bg-white);
    transition: border-color var(--theme-transition);
}

.bold-listings-page .hl-filter-bar select:focus,
.bold-listings-page .hl-filter-bar .hl-filter-input:focus {
    border-color: var(--theme-accent);
    box-shadow: none !important;
    outline: 2px solid rgba(59,130,246,0.15);
    outline-offset: -2px;
}

/* Filter submit button — sharp accent */
.bold-listings-page .hl-filter-bar .submit-button {
    border-radius: 0 !important;
    background: var(--theme-accent);
    border: 2px solid var(--theme-accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all var(--theme-transition);
}

.bold-listings-page .hl-filter-bar .submit-button:hover {
    transform: none !important;
    box-shadow: none !important;
    background: var(--theme-accent-light);
    border-color: var(--theme-accent-light);
}

/* Results count — sharp badge */
.bold-listings-page .hl-results-count {
    border-radius: 0 !important;
    background: var(--theme-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════ */

.bold-listings-page .hl-map-wrap {
    padding: 0 0 0.5rem;
}

.bold-listings-page .hl-map-toggle {
    border-radius: 0 !important;
    border: 2px solid var(--theme-accent);
    color: var(--theme-accent);
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    transition: all var(--theme-transition);
}

.bold-listings-page .hl-map-toggle:hover {
    background: var(--theme-accent);
    color: #fff;
}

.bold-listings-page .hl-map-container {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--theme-border);
}

/* ═══════════════════════════════════════════
   HOTELS LISTING SECTION
   ═══════════════════════════════════════════ */

.bold-listings-page .hl-hotels-listing {
    padding: 2.5rem 0 3rem;
}

/* ═══════════════════════════════════════════
   HOTEL CARDS GRID
   ═══════════════════════════════════════════ */

.bold-listings-page .hl-hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Individual card ── */
.bold-listings-page .hl-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--theme-border);
    background: var(--theme-bg-white);
    transition: border-color var(--theme-transition);
    overflow: hidden;
}

.bold-listings-page .hl-card:hover {
    box-shadow: none !important;
    transform: none !important;
    border-color: var(--theme-accent);
}

/* Card link */
.bold-listings-page .hl-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Card image ── */
.bold-listings-page .hl-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.bold-listings-page .hl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    transition: none !important;
}

.bold-listings-page .hl-card:hover .hl-card-img img {
    transform: none !important;
}

/* Image overlay */
.bold-listings-page .hl-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(30,30,46,0.5)) !important;
    pointer-events: none;
}

/* Rating badge — top-left */
.bold-listings-page .hl-card-rating {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--theme-primary);
    color: #fff;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    z-index: 2;
}

.bold-listings-page .hl-card-rating svg {
    color: var(--theme-accent-on-dark); /* #60a5fa on #1e1e2e bg — icon contrast passes 3:1 ✓ */
}

.bold-listings-page .hl-card-rating-score {
    color: var(--theme-accent-on-dark); /* #60a5fa — 5.88:1 vs #1e1e2e (was 3.17:1) ✓ */
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.bold-listings-page .hl-card-rating-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    font-weight: 500;
}

/* Price badge — bottom-right */
.bold-listings-page .hl-card-price-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--theme-accent);
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.65rem;
    z-index: 2;
}

.bold-listings-page .hl-card-price-from {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff; /* was rgba(255,255,255,0.8) = 3.89:1 on accent — #fff = 5.17:1 ✓ */
    font-weight: 500;
}

.bold-listings-page .hl-card-price-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    line-height: 1;
}

/* ── Card body ── */
.bold-listings-page .hl-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.bold-listings-page .hl-card-title {
    font-family: var(--font-heading) !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Star ratings */
.bold-listings-page .hotel-stars {
    display: flex;
    gap: 0.1rem;
}

.bold-listings-page .hotel-stars .star-full,
.bold-listings-page .hotel-stars svg {
    color: var(--theme-accent);
    fill: var(--theme-accent);
    width: 14px;
    height: 14px;
}

/* Location */
.bold-listings-page .hl-card-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: var(--theme-text-light);
    margin: 0;
}

.bold-listings-page .hl-card-location svg {
    color: var(--theme-accent);
    flex-shrink: 0;
}

/* Amenity chips — sharp */
.bold-listings-page .hl-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.bold-listings-page .hl-card-amenity {
    border-radius: 0 !important;
    background: var(--theme-bg-light);
    border: 1px solid var(--theme-border);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text);
    padding: 0.2rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.bold-listings-page .hl-card-amenity svg {
    color: var(--theme-accent);
}

/* Description */
.bold-listings-page .hl-card-desc {
    font-size: 0.82rem;
    color: var(--theme-text-light);
    line-height: 1.5;
    margin: 0;
}

/* ═══════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════ */

.bold-listings-page .pagination {
    display: flex;
    justify-content: center;
    padding: 2.5rem 0 0;
}

.bold-listings-page .pagination ul {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bold-listings-page .pagination li {
    display: inline-flex;
}

.bold-listings-page .pagination a,
.bold-listings-page .pagination span {
    border-radius: 0 !important;
    min-width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--theme-border);
    color: var(--theme-text-dark);
    text-decoration: none;
    transition: all var(--theme-transition);
}

.bold-listings-page .pagination a:hover {
    background: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    color: #fff !important;
    transform: none !important;
}

.bold-listings-page .pagination .current {
    background: var(--theme-accent) !important;
    color: #fff !important;
    border-color: var(--theme-accent) !important;
}

.bold-listings-page .pagination .prev,
.bold-listings-page .pagination .next {
    border-radius: 0 !important;
}

.bold-listings-page .pagination .dots {
    border: none;
    color: var(--theme-text-light);
}

/* ═══════════════════════════════════════════
   SORTING OPTIONS (from parent helpers.php)
   ═══════════════════════════════════════════ */

.bold-listings-page .sorting-options {
    padding: 0.75rem 0;
}

.bold-listings-page .sorting-options select {
    border-radius: 0 !important;
    border: 1px solid var(--theme-border);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.bold-listings-page .sorting-options select:focus {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 1px var(--theme-accent);
}

.bold-listings-page .sorting-options label {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

/* ═══════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════ */

.bold-listings-page .loader {
    border-color: var(--theme-border);
    border-top-color: var(--theme-accent);
}

/* ═══════════════════════════════════════════
   COUNTRY SINGLE PAGE — listings context
   ═══════════════════════════════════════════ */

/* Country pages with .bold-listings-page also get these overrides */

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .lp-hero-title {
        font-size: 2.5rem;
    }

    .lp-hero-visual {
        width: 150px;
        height: 150px;
    }

    .bold-listings-page .hl-hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .lp-hero {
        padding: 3rem 0 2.5rem;
    }

    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .lp-hero-visual {
        display: none;
    }

    .lp-hero-title {
        font-size: 2rem;
    }

    .lp-hero-subtitle {
        font-size: 0.95rem;
    }

    .lp-hero-stats {
        gap: 1rem;
    }

    .lp-stat-number {
        font-size: 1.35rem;
    }

    .lp-stat-label {
        font-size: 0.7rem;
    }

    .lp-stat-divider {
        height: 2rem;
    }

    /* Destinations bar — scroll on mobile */
    .lp-destinations-inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
    }

    .lp-destinations-inner::-webkit-scrollbar {
        display: none;
    }

    .lp-destinations-list {
        flex-wrap: nowrap;
    }

    .lp-dest-chip {
        white-space: nowrap;
    }

    /* Filter bar — stack vertically on mobile */
    .bold-listings-page .hl-filter-bar {
        top: 0;
        position: relative;
    }

    .bold-listings-page .hl-filter-bar-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .bold-listings-page .hl-filter-group,
    .bold-listings-page .hl-filter-group.hl-filter-search {
        flex: none;
        width: 100%;
    }

    .bold-listings-page .hl-filter-group select,
    .bold-listings-page .hl-filter-group input {
        width: 100%;
    }

    .bold-listings-page .hl-filter-bar .submit-button {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    .bold-listings-page .hl-results-count {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .bold-listings-page .hl-map-toggle {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    /* Cards — 1 column */
    .bold-listings-page .hl-hotels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .lp-hero {
        padding: 2rem 0 1.5rem;
    }

    .lp-hero-title {
        font-size: 1.5rem;
    }

    .lp-hero-label {
        font-size: 0.65rem;
    }

    .lp-hero-subtitle {
        font-size: 0.85rem;
    }

    .lp-hero-stats {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .lp-stat-divider {
        display: none;
    }

    .lp-stat-number {
        font-size: 1.2rem;
    }

    .bold-listings-page .hl-filter-bar-inner {
        padding: 0.75rem 0;
    }

    .bold-listings-page .hl-filter-bar label {
        font-size: 0.7rem;
    }
}
