/* Hero slider shared styles for themes that do not load assets/style.css */

.hero-section {
    position: relative;
    width: 100%;
    height: var(--hero-height, 650px);
    overflow: hidden;
}

.hero-search-integrated .hero-background-swiper,
.hero-location-discovery .hero-background-swiper,
.hero-seasonal-themed .hero-background-swiper,
.hero-interactive-map .hero-background-swiper,
.hero-cinematic .hero-background-swiper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-search-integrated .hero-content,
.hero-location-discovery .hero-content,
.hero-seasonal-themed .hero-content,
.hero-interactive-map .hero-content,
.hero-cinematic .hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.hero-search-integrated .hero-content > *,
.hero-location-discovery .hero-content > *,
.hero-seasonal-themed .hero-content > *,
.hero-interactive-map .hero-content > *,
.hero-cinematic .hero-content > * {
    pointer-events: auto;
}

.hero-background-swiper,
.hero-slide {
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: relative;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.58) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes heroFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: heroFadeInUp 0.8s ease-out; }
.animate-fade-in-up-delay { animation: heroFadeInUp 0.8s ease-out 0.2s both; }
.animate-fade-in-up-delay-2 { animation: heroFadeInUp 0.8s ease-out 0.4s both; }

.hero-button-prev,
.hero-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.hero-button-prev { left: 30px; }
.hero-button-next { right: 30px; }

.hero-button-prev:hover,
.hero-button-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.08);
}

.hero-button-prev i,
.hero-button-next i {
    color: #fff;
    font-size: 20px;
}

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.hero-pagination .swiper-pagination-bullet {
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1 !important;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.hero-pagination .swiper-pagination-bullet-active {
    background: var(--brand-accent, #f59e0b) !important;
    width: 40px !important;
    border-radius: 7px !important;
    border-color: var(--brand-accent, #f59e0b) !important;
}

.hero-pagination .swiper-pagination-fraction {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.35);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.hero-pagination .swiper-pagination-progressbar {
    background: rgba(255, 255, 255, 0.3);
    height: 4px !important;
    width: min(240px, 60vw) !important;
    border-radius: 2px;
}

.hero-pagination .swiper-pagination-progressbar-fill {
    background: var(--brand-accent, #f59e0b) !important;
}

/* Cinematic variation */
.hero-overlay--cinematic {
    background:
        linear-gradient(120deg, rgba(4, 12, 32, 0.82) 0%, rgba(4, 12, 32, 0.35) 45%, rgba(4, 12, 32, 0.15) 100%),
        linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 55%);
}

.hero-bg-image--kenburns {
    transform: scale(1.08);
    animation: heroKenBurns 14s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    from { transform: scale(1.08); }
    to { transform: scale(1.18); }
}

.hero-slide-cinematic.active .hero-bg-image--kenburns,
.hero-slide-cinematic.swiper-slide-active .hero-bg-image--kenburns {
    animation-play-state: running;
}

.hero-cinematic-index {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero-title-cinematic {
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Location discovery variation */
.hero-location-panel {
    align-items: flex-end;
    padding-bottom: 2.5rem;
}

.hero-location-panel__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.hero-location-panel__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #fff;
}

.hero-location-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.hero-location-card {
    flex: 0 0 auto;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 1rem;
    padding: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero-location-card.is-active,
.hero-location-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
}

.hero-location-card__thumb {
    display: block;
    width: 100%;
    height: 92px;
    border-radius: 0.75rem;
    background-size: cover;
    background-position: center;
    margin-bottom: 0.75rem;
}

.hero-location-card__label {
    display: block;
    color: #fff;
    font-weight: 700;
}

/* Seasonal variation */
.hero-overlay.hero-slide-seasonal + .hero-overlay,
.hero-seasonal-themed .hero-overlay {
    background:
        linear-gradient(135deg, rgba(180, 83, 9, 0.35) 0%, rgba(15, 23, 42, 0.72) 55%, rgba(2, 6, 23, 0.82) 100%);
}

.hero-seasonal-copy {
    max-width: 640px;
}

.hero-seasonal-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Interactive map variation */
.hero-map-overlay {
    align-items: center;
}

.hero-map-copy__eyebrow {
    margin: 0 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.hero-map-stage {
    position: relative;
    width: min(420px, 42vw);
    aspect-ratio: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 18, 40, 0.55);
    backdrop-filter: blur(16px);
}

.hero-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.45;
}

.hero-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
}

.hero-map-pin__pulse {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-accent, #f59e0b);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
    animation: heroMapPulse 2s infinite;
}

.hero-map-pin.is-active .hero-map-pin__pulse {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
}

.hero-map-pin__label {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-map-pin.is-active .hero-map-pin__label,
.hero-map-pin:hover .hero-map-pin__label {
    opacity: 1;
}

@keyframes heroMapPulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55); }
    70% { box-shadow: 0 0 0 16px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@media (max-width: 991px) {
    .hero-map-overlay .container {
        flex-direction: column;
        justify-content: center;
    }

    .hero-map-stage {
        width: min(100%, 360px);
    }

    .hero-button-prev,
    .hero-button-next {
        width: 46px;
        height: 46px;
    }

    .hero-button-prev { left: 16px; }
    .hero-button-next { right: 16px; }
}

/* Overlay hero variant (site-wide generic markup) */
.home-hero {
    position: relative;
    min-height: var(--home-hero-min-height, 560px);
    overflow: hidden;
}

.home-hero--overlay-search {
    display: flex;
    flex-direction: column;
}

.home-hero--overlay-search .home-hero__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: var(--home-hero-min-height, 560px);
    width: 100%;
}

.home-hero--overlay-search .home-hero__slide {
    position: relative;
    min-height: var(--home-hero-min-height, 560px);
    display: flex;
    align-items: stretch;
}

.home-hero--overlay-search .home-hero__bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: scale(1.02);
}

.home-hero--overlay-search .home-hero__slide-copy {
    position: relative;
    z-index: 1;
    max-width: var(--home-hero-copy-max-width, 1480px);
    width: 100%;
    margin: 0 auto;
    padding: var(--home-hero-copy-padding, 72px 28px 24px);
    color: #fff;
}

.home-hero--overlay-search .home-hero__search-host {
    position: relative;
    z-index: 2;
    max-width: var(--home-hero-copy-max-width, 1480px);
    width: 100%;
    margin: 0 auto;
    padding: 0 28px;
    pointer-events: auto;
}

.home-hero--overlay-search .hero-button-prev,
.home-hero--overlay-search .hero-button-next {
    color: #fff;
    z-index: 3;
}

.home-hero--overlay-search .hero-pagination {
    z-index: 3;
}

.home-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero--overlay-search h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 5vw, 4.15rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.home-hero__slide-copy p:last-of-type {
    margin: 0;
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.88);
}

.home-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-hero__cta--primary {
    background: var(--home-hero-cta-primary-bg, var(--brand-primary, #2563eb));
    color: var(--home-hero-cta-primary-text, #fff);
    border: 1px solid transparent;
}

.home-hero__cta--primary:hover {
    background: var(--home-hero-cta-primary-hover-bg, var(--brand-primary-dark, #1d4ed8));
    color: var(--home-hero-cta-primary-hover-text, #fff);
}

.home-hero__cta--soft {
    background: var(--home-hero-cta-soft-bg, rgba(255, 255, 255, 0.14));
    color: var(--home-hero-cta-soft-text, #fff);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-hero__cta--soft:hover {
    background: var(--home-hero-cta-soft-hover-bg, rgba(255, 255, 255, 0.22));
    color: var(--home-hero-cta-soft-hover-text, #fff);
}

.home-hero__search {
    margin-top: auto;
    transform: translateY(var(--home-hero-search-offset, 32px));
    padding: 12px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--home-hero-search-shadow, 0 24px 60px rgba(15, 23, 42, 0.18));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
}

.home-hero__search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-right: 1px solid rgba(231, 233, 240, 0.9);
}

.home-hero__search-field:last-of-type {
    border-right: 0;
}

.home-hero__search-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary, #2563eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-hero__search-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.home-hero__search-meta strong {
    font-size: 0.86rem;
    color: #101828;
}

.home-hero__search-meta input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.92rem;
}

.home-hero__search-meta input[type="date"],
.home-hero__search-meta input[type="number"] {
    color: #23263a;
}

.home-hero__search-submit {
    border: 0;
    padding: 0 34px;
    border-radius: 18px;
    background: var(--home-hero-search-submit-bg, var(--brand-primary, #2563eb));
    color: var(--home-hero-search-submit-text, #fff);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.home-hero__search-submit:hover {
    background: var(--home-hero-search-submit-hover-bg, var(--brand-primary-dark, #1d4ed8));
}

@media (max-width: 991px) {
    .home-hero__search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero__search-submit {
        min-height: 64px;
    }
}

@media (max-width: 768px) {
    .home-hero,
    .home-hero--overlay-search .home-hero__stage,
    .home-hero--overlay-search .home-hero__slide {
        min-height: 640px;
    }

    .home-hero--overlay-search .home-hero__slide-copy {
        padding: 44px 16px 24px;
    }

    .home-hero__search {
        grid-template-columns: 1fr;
        transform: translateY(28px);
    }

    .home-hero__search-field {
        border-right: 0;
        border-bottom: 1px solid rgba(231, 233, 240, 0.9);
    }

    .home-hero__search-submit {
        min-height: 56px;
    }
}
