/* ============================================================
   Hero Luxury Slider — JamesEdition Style
   Full-viewport, dark-left gradient, line indicators
   ============================================================ */

/* ---- Header overlay (transparent on hero) ---- */
.hero-header-overlay {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.3s ease;
}

.hero-header-overlay:not(.header-fixed) {
    position: absolute !important;
    background: linear-gradient(180deg, rgb(2 37 31) 0%, rgba(0, 0, 0, 0) 60%);
}

.hero-header-overlay .realestate-header-container {
    background: transparent;
}

.realestate-header.home1 .realestate-header-container {
    padding: 20px 0;
}

/* ---- Section ---- */
.hero-luxury-landing {
    height: 70vh !important;
    min-height: 480px !important;
    max-height: 780px !important;
    padding: 0 !important;
}

/* ---- Slides ---- */
.hero-luxury-background-slider {
    top: 0;
    left: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    animation: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 6s ease;
}

/* ---- Gradient overlay ---- */
.hero-luxury-gradient {
    top: 0;
    left: 0;
    background:
        linear-gradient(
            to right,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.08) 75%,
            rgba(0, 0, 0, 0.03) 100%
        ),
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.45) 0%,
            rgba(0, 0, 0, 0.18) 25%,
            transparent 45%
        );
}

/* ---- Content layer ---- */
.hero-luxury-content-layer {
    top: 0;
    left: 0;
    z-index: 10;
}

/* ---- Bottom bar ---- */
.hero-bottom-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 64px 56px;
    gap: 48px;
}

/* ---- Left content ---- */
.hero-content-left {
    flex: 1;
    max-width: 720px;
}

/* Eyebrow */
.hero-eyebrow-text {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    opacity: 0.65;
    font-weight: 500;
}

/* Title */
.hero-luxury-title {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 0;
}

.hero-luxury-accent {
    font-weight: 700;
}

/* Stats row */
.hero-stats-row {
    display: flex;
    align-items: center;
}

.hero-stats-text {
    font-size: 1rem;
    letter-spacing: 0rem;
    /* text-transform: uppercase; */
    opacity: 0.55;
    font-weight: 400;
}

/* ---- Right content (controls) ---- */
.hero-content-right {
    flex-shrink: 0;
    padding-bottom: 2px;
}

/* Slide line indicators */
.hero-slide-lines {
    margin-bottom: 14px;
    gap: 8px !important;
}

.hero-slide-line {
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease;
    border: none;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

.hero-slide-line.active {
    width: 48px;
    background: #ffffff;
}

.hero-slide-line:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* Arrow navigation */
.hero-nav-arrows {
    gap: 10px !important;
}

.hero-luxury-prev,
.hero-luxury-next {
    width: 46px;
    height: 46px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.38);
    color: #ffffff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    padding: 0;
    line-height: 1;
}

.hero-luxury-prev:hover,
.hero-luxury-next:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.65);
}

.hero-luxury-prev:focus,
.hero-luxury-next:focus {
    outline: none;
}

/* ---- Legacy .hero-dot (kept for any other use) ---- */
.hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* ---- Video slide (background olarak Vimeo iframe) ---- */
.hero-slide-video {
    background: #000;
    transform: none;
}

.hero-slide-video.active {
    transform: none;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    container-type: size;
}

/* Vimeo iframe'i 16:9 oranını koruyarak tüm container'ı kırpmalı (cover) şekilde kaplar.
   Hiçbir ekran genişliği veya hero yüksekliğinde üst/alt siyah boşluk kalmaz. */
.hero-video-wrapper iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max(100vw, 177.78vh);
    height: max(56.25vw, 100vh);
    width: max(100cqw, 177.77777778cqh);
    height: max(56.25cqw, 100cqh);
    border: 0;
    pointer-events: none;
}

/* Aktif slayt açıklaması - okların altında, sağa hizalı sade metin (masaüstü) */
.hero-slide-caption {
    margin-top: 14px;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-align: right;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

/* Mobil: çizgiler + caption başlığın altında, sola hizalı */
.hero-mobile-meta .hero-slide-lines {
    margin-bottom: 10px;
}
.hero-mobile-meta .hero-slide-caption {
    margin-top: 0;
    max-width: none;
    text-align: left;
}
/* Başlık linki (page_content'te link girildiyse) — tıklanabilir olmalı */
.hero-slide-caption .hero-caption-link {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-slide-caption .hero-caption-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ---- Slide transition animations ---- */
@keyframes heroKenBurns {
    from { transform: scale(1.04); }
    to   { transform: scale(1); }
}

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .hero-luxury-title {
        font-size: 3.75rem;
    }

    .hero-bottom-bar {
        padding: 0 48px 48px;
    }
}

@media (max-width: 992px) {
    .hero-luxury-title {
        font-size: 3rem;
    }

    .hero-bottom-bar {
        padding: 0 36px 40px;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .hero-luxury-landing {
        height: 52vh !important;        /* mobilde 52vh hero yüksekliği */
        min-height: 350px !important;
        max-height: none !important;
        padding: 0 !important;
    }

    /* Başlık solda; altında çizgiler ve caption; oklar sağda metne göre dikey ortalı */
    .hero-bottom-bar {
        align-items: center;
        padding: 0 24px 28px;
        gap: 18px;
    }

    .hero-content-left {
        max-width: none;
    }

    .hero-luxury-title {
        font-size: 1.7em;
        margin-bottom: 10px;
    }

    .hero-slide-lines {
        margin-bottom: 10px;
    }
    .hero-slide-line {
        width: 20px;
    }
    .hero-slide-line.active {
        width: 32px;
    }

    .hero-slide-caption {
        margin-top: 0;
        font-size: 0.68rem;
    }
}

@media (max-width: 576px) {
    .hero-luxury-landing {
        height: 52vh !important;        /* mobil cihazlarda 52vh hero yüksekliği */
        min-height: 300px !important;
        max-height: none !important;
        padding: 0 !important;
    }

    .hero-bottom-bar {
        padding: 0 18px 24px;
        gap: 14px;
    }

    .hero-luxury-title {
        font-size: 1.7em;
    }

    .hero-slide-caption {
        font-size: 0.64rem;
    }

    .hero-luxury-prev,
    .hero-luxury-next {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }

    .hero-slide-line {
        width: 16px;
    }
    .hero-slide-line.active {
        width: 26px;
    }
}

/* ---- Legacy hero-slider-section (kept for other pages) ---- */
.hero-slider-section {
    width: 100%;
    min-height: 40vh;
    max-height: 50vh;
    overflow: visible;
    position: relative;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 100;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero-slider-dots {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}
