/**
 * Hotels Theme Bold — Homepage styles.
 * Split-screen hero, horizontal destinations, alternating hotel rows,
 * advantage cards, featured blog, CTA banner.
 * All classes use hp- prefix matching front-page.php.
 */

/* ═══════════════════════════════════════════
   SECTION 1: SPLIT-SCREEN HERO
   ═══════════════════════════════════════════ */

.hp-hero {
    background: var(--theme-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hp-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* ── Hero text side ── */
.hp-hero-text {
    color: #fff;
}

.hp-hero-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--theme-accent-on-dark); /* dark bg: #60a5fa = 5.88:1 on #1e1e2e */
    margin-bottom: 1.25rem;
    border: 1px solid var(--theme-accent-on-dark);
    padding: 0.4rem 1rem;
}

.hp-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 1.25rem;
}

.hp-hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 2rem;
    max-width: 480px;
}

/* ── Hero search ── */
.hp-hero-search {
    display: flex;
    border: 2px solid rgba(255, 255, 255, 0.5); /* was 0.2 — WCAG 1.4.11: 4.35:1 vs dark bg */
    margin-bottom: 2.5rem;
    max-width: 500px;
    transition: border-color var(--theme-transition);
}

.hp-hero-search:focus-within {
    border-color: var(--theme-accent);
}

.hp-hero-search-input {
    flex: 1;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.38); /* was 0.06 (1.2:1) — WCAG 1.4.11: 3.24:1 vs #1e1e2e ✓ */
    border: none;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    color: #fff;
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.hp-hero-search-input:focus-visible {
    outline: 2px solid var(--theme-accent);
    outline-offset: -2px;
}

.hp-hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hp-hero-search-btn {
    padding: 0.9rem 1.5rem;
    background: var(--theme-accent);
    color: #fff;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background var(--theme-transition);
    white-space: nowrap;
}

.hp-hero-search-btn:hover {
    background: var(--theme-accent-light);
}

/* ── Hero stats ── */
.hp-hero-stats {
    display: flex;
    gap: 2.5rem;
}

.hp-stat {
    display: flex;
    flex-direction: column;
}

.hp-stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-accent-on-dark); /* dark bg: 5.88:1 on #1e1e2e */
    line-height: 1;
    margin-bottom: 0.3rem;
}

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

/* ── Hero image ── */
.hp-hero-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 550px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hp-hero-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    text-decoration: none;
    transition: background var(--theme-transition);
}

.hp-hero-image-label:hover {
    background: linear-gradient(transparent 20%, rgba(0, 0, 0, 0.95));
}

.hp-hero-image-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--theme-accent);
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
}

.hp-hero-image-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-hero-image-rating {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--theme-accent-on-dark); /* dark overlay bg: 5.88:1 on #1e1e2e */
}

.hp-hero-image-label svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════
   COMMON SECTION STYLES
   ═══════════════════════════════════════════ */

.hp-section {
    padding: 5rem 0;
}

.hp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.hp-section-header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hp-section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--theme-accent);
    margin-bottom: 0.5rem;
}

.hp-section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hp-section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: color var(--theme-transition-fast);
}

.hp-section-link:hover {
    color: var(--theme-accent-light);
}

.hp-section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ═══════════════════════════════════════════
   SECTION 2: DESTINATIONS (featured grid)
   ═══════════════════════════════════════════ */

.hp-destinations--dark {
    background: var(--theme-primary);
}

.hp-destinations--dark .hp-section-label {
    color: var(--theme-accent-on-dark); /* dark bg: 5.88:1 on #1e1e2e */
}

.hp-destinations--dark .hp-section-title {
    color: #fff;
}

.hp-destinations--dark .hp-section-link {
    color: var(--theme-accent-on-dark); /* dark bg: 5.88:1 on #1e1e2e (WCAG AA) */
}

.hp-destinations--dark .hp-section-link:hover {
    color: var(--theme-accent-light);
}

/* Grid: 2 featured on top, 4 smaller below */
.hp-dest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.hp-dest-card--featured {
    grid-column: span 2;
}

/* Card base — overlay style */
.hp-dest-card {
    position: relative;
    display: block;
    overflow: hidden;
    height: 220px;
    text-decoration: none;
    color: #fff;
    border-left: 3px solid transparent;
    transition: border-color var(--theme-transition);
}

.hp-dest-card--featured {
    height: 320px;
}

.hp-dest-card:hover {
    border-left-color: var(--theme-accent);
}

/* Full-bleed image */
.hp-dest-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hp-dest-card:hover .hp-dest-card-img {
    transform: scale(1.06);
}

/* Dark gradient overlay */
.hp-dest-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 30, 46, 0.85) 0%, rgba(30, 30, 46, 0.2) 50%, transparent 100%);
    z-index: 1;
    transition: background var(--theme-transition);
}

.hp-dest-card:hover .hp-dest-card-overlay {
    background: linear-gradient(to top, rgba(30, 30, 46, 0.75) 0%, rgba(30, 30, 46, 0.1) 50%, transparent 100%);
}

/* Content at bottom */
.hp-dest-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    z-index: 2;
}

.hp-dest-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.hp-dest-card--featured .hp-dest-card-title {
    font-size: 1.4rem;
}

.hp-dest-card-count {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.25rem 0.7rem;
    letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════
   SECTION 3: TOP-RATED HOTELS (alternating rows)
   ═══════════════════════════════════════════ */

.hp-hotels {
    background: #fff;
}

.hp-hotels-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hp-hotel-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--theme-border);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color var(--theme-transition);
}

.hp-hotel-row:hover {
    border-color: var(--theme-accent);
}

.hp-row-reverse .hp-hotel-row-img {
    order: 2;
}

.hp-row-reverse .hp-hotel-row-info {
    order: 1;
}

/* ── Row image ── */
.hp-hotel-row-img {
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}

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

/* ── Row info ── */
.hp-hotel-row-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hp-hotel-rating {
    display: inline-flex;
    align-items: baseline;
    background: var(--theme-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.hp-hotel-rating small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 0.1rem;
}

.hp-hotel-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.hp-hotel-stars {
    margin-bottom: 0.75rem;
}

.hp-hotel-stars .hotel-stars svg {
    color: var(--theme-accent);
    fill: var(--theme-accent);
}

.hp-hotel-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-text-light);
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.hp-hotel-location svg {
    color: var(--theme-accent);
    flex-shrink: 0;
}

.hp-hotel-excerpt {
    color: var(--theme-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-hotel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--theme-transition-fast);
}

.hp-hotel-row:hover .hp-hotel-link {
    color: var(--theme-accent-light);
}

/* ═══════════════════════════════════════════
   SECTION 4: WHY CHOOSE US
   ═══════════════════════════════════════════ */

.hp-advantages {
    background: var(--theme-bg-light);
}

.hp-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hp-adv-card {
    border: 1px solid var(--theme-border);
    background: #fff;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color var(--theme-transition);
}

.hp-adv-card:hover {
    border-color: var(--theme-accent);
}

.hp-adv-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--theme-primary);
    color: var(--theme-accent);
    margin-bottom: 1.5rem;
}

.hp-adv-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0 0 0.75rem;
}

.hp-adv-text {
    color: var(--theme-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* ═══════════════════════════════════════════
   SECTION 5: BLOG (featured + sidebar)
   ═══════════════════════════════════════════ */

.hp-blog {
    background: #fff;
}

.hp-blog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Featured blog post ── */
.hp-blog-featured {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--theme-border);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color var(--theme-transition);
}

.hp-blog-featured:hover {
    border-color: var(--theme-accent);
}

.hp-blog-featured-img {
    height: 280px;
    overflow: hidden;
}

.hp-blog-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hp-blog-featured:hover .hp-blog-featured-img img {
    transform: scale(1.04);
}

.hp-blog-featured-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Blog meta (shared) ── */
.hp-blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

.hp-blog-cat {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--theme-primary);
}

.hp-blog-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--theme-text-dark);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.hp-blog-featured .hp-blog-title {
    font-size: 1.35rem;
}

.hp-blog-excerpt {
    color: var(--theme-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Small blog cards ── */
.hp-blog-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hp-blog-small {
    display: grid;
    grid-template-columns: 180px 1fr;
    border: 1px solid var(--theme-border);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color var(--theme-transition);
}

.hp-blog-small:hover {
    border-color: var(--theme-accent);
}

.hp-blog-small-img {
    overflow: hidden;
}

.hp-blog-small-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 140px;
}

.hp-blog-small-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ═══════════════════════════════════════════
   SECTION 6: CTA BANNER
   ═══════════════════════════════════════════ */

.hp-cta {
    background: var(--theme-primary);
    padding: 5rem 0;
    text-align: center;
}

.hp-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.hp-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.hp-cta-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.hp-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hp-cta-btn-primary {
    background: var(--theme-accent);
    border-color: var(--theme-accent);
}

.hp-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: all var(--theme-transition);
}

.hp-cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

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

@media (max-width: 992px) {
    /* Hero — stack */
    .hp-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hp-hero-image {
        max-height: 400px;
        aspect-ratio: 16 / 9;
    }

    .hp-hero-search {
        max-width: 100%;
    }

    /* Hotel rows — stack */
    .hp-hotel-row {
        grid-template-columns: 1fr;
    }

    .hp-hotel-row-img {
        min-height: 250px;
    }

    .hp-row-reverse .hp-hotel-row-img {
        order: 0;
    }

    .hp-row-reverse .hp-hotel-row-info {
        order: 0;
    }

    .hp-hotel-row-info {
        padding: 2rem;
    }

    /* Blog — stack */
    .hp-blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hp-section {
        padding: 3.5rem 0;
    }

    /* Hero */
    .hp-hero {
        min-height: auto;
    }

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

    .hp-hero-stats {
        gap: 1.5rem;
    }

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

    /* Destinations */
    .hp-dest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hp-dest-card--featured {
        grid-column: span 1;
        height: 220px;
    }

    .hp-dest-card {
        height: 200px;
    }

    .hp-dest-card-title {
        font-size: 1rem;
    }

    .hp-dest-card--featured .hp-dest-card-title {
        font-size: 1.15rem;
    }

    /* Advantages — 1 col */
    .hp-adv-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hp-adv-card {
        padding: 2rem 1.5rem;
    }

    /* Blog small */
    .hp-blog-small {
        grid-template-columns: 140px 1fr;
    }

    /* Section headers */
    .hp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* CTA */
    .hp-cta {
        padding: 3.5rem 0;
    }

    .hp-cta-actions {
        flex-direction: column;
    }

    .hp-cta-btn-outline {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hp-hero-search {
        flex-direction: column;
    }

    .hp-hero-search-btn {
        width: 100%;
        padding: 0.85rem;
    }

    .hp-hero-image {
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }

    .hp-dest-grid {
        grid-template-columns: 1fr;
    }

    .hp-dest-card,
    .hp-dest-card--featured {
        height: 180px;
    }

    .hp-hotel-row-info {
        padding: 1.5rem;
    }

    .hp-hotel-title {
        font-size: 1.25rem;
    }

    .hp-blog-small {
        grid-template-columns: 1fr;
    }

    .hp-blog-small-img {
        height: 180px;
    }

    .hp-blog-featured-img {
        height: 200px;
    }
}
