/* ── EstateFlow Hero Slider ──────────────────────────────────────────────── */

.esf-hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
    display: block;
    overflow: hidden;
    background: #0D1B2A;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.esf-hero-slider + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ── Slides Container ───────────────────────────────────────────────────── */
.esf-hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.esf-hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: inherit;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.esf-hero-slide.esf-slide-active {
    opacity: 1;
    position: relative;
}

/* Slide Effect: Zoom on active bg-image */
.esf-hero-slide.esf-slide-active {
    animation: esfZoomBg 8s ease forwards;
}
@keyframes esfZoomBg {
    from { background-size: 100% auto; }
    to   { background-size: 108% auto; }
}

/* ── BG Video ───────────────────────────────────────────────────────────── */
.esf-hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ── YouTube BG ─────────────────────────────────────────────────────────── */
.esf-hero-yt-wrap {
    position: absolute;
    inset: -60px;
    z-index: 0;
    pointer-events: none;
}
.esf-hero-yt-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Overlay ────────────────────────────────────────────────────────────── */
.esf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ── Ken Burns on image slides ──────────────────────────────────────────── */
.esf-hero-slide.esf-slide-active .esf-hero-slide-bg-image {
    animation: esfKenBurns 8s ease forwards;
}
@keyframes esfKenBurns {
    from { transform: scale(1.08); }
    to   { transform: scale(1); }
}
.esf-hero-slide-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.08);
    will-change: transform;
}

/* ── Video badge ─────────────────────────────────────────────────────────── */
.esf-hero-video-tag {
    position: absolute;
    bottom: 80px;
    right: 28px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    padding: 6px 14px 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    pointer-events: none;
}
.esf-hero-video-tag .esf-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4444;
    animation: esfBlink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes esfBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* ── Slide counter badge ─────────────────────────────────────────────────── */
.esf-hero-slide-counter {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 20;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
}
.esf-hero-slide-counter strong {
    font-size: 18px;
    font-weight: 700;
    color: #C9A84C;
    font-family: Georgia, serif;
}

/* ── Progress bar gradient ───────────────────────────────────────────────── */
.esf-hero-progress-bar {
    background: linear-gradient(90deg, #C9A84C, #F97316) !important;
}

/* ── Dot Pattern ────────────────────────────────────────────────────────── */
.esf-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.06;
    background-image: radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* ── Content Layout ─────────────────────────────────────────────────────── */
.esf-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 48px 80px;
    min-height: inherit;
}
.esf-hero-align-center .esf-hero-content {
    justify-content: center;
    text-align: center;
}
.esf-hero-align-center .esf-hero-title { text-align: center; }

/* ── Left Column ────────────────────────────────────────────────────────── */
.esf-hero-left {
    flex: 1;
    max-width: 620px;
}

/* ── Badge ──────────────────────────────────────────────────────────────── */
.esf-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 100px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: esfFadeUp 0.7s ease both;
    animation-delay: 0.1s;
}

/* ── Title ──────────────────────────────────────────────────────────────── */
.esf-hero-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    margin: 0 0 20px;
}
.esf-hero-t1,
.esf-hero-t3 {
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    animation: esfFadeUp 0.7s ease both;
    animation-delay: 0.2s;
}
.esf-hero-t2 {
    font-size: clamp(42px, 5.5vw, 76px);
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 3px;
    animation: esfFadeUp 0.7s ease both;
    animation-delay: 0.3s;
}
.esf-hero-t3 {
    animation-delay: 0.35s;
}

/* ── Description ────────────────────────────────────────────────────────── */
.esf-hero-desc {
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255,255,255,0.65);
    margin: 0 0 36px;
    max-width: 520px;
    animation: esfFadeUp 0.7s ease both;
    animation-delay: 0.4s;
}

/* ── CTA Button ─────────────────────────────────────────────────────────── */
.esf-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s;
    animation: esfFadeUp 0.7s ease both;
    animation-delay: 0.5s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.esf-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    filter: brightness(1.1);
}
.esf-hero-btn:visited { color: inherit; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.esf-hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: esfFadeUp 0.7s ease both;
    animation-delay: 0.6s;
}
.esf-hero-stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -1px;
}
.esf-hero-stat-lbl {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ── Search Card ────────────────────────────────────────────────────────── */
.esf-hero-search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    width: 340px;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: esfFadeLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.3s;
}

.esf-search-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}
.esf-search-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Form Fields */
.esf-sc-field {
    background: #f8f7f5;
    border: 1.5px solid #ede8e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}
.esf-sc-field.esf-sc-select {
    padding: 0;
}
.esf-sc-field:focus-within {
    border-color: #F97316;
    background: #fff;
}
.esf-sc-field svg { flex-shrink: 0; }
.esf-sc-field input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    padding: 13px 0;
    width: 100%;
    font-family: inherit;
}
.esf-sc-field input::placeholder { color: #aaa; }

/* Custom select wrapper */
.esf-sc-select {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0;
}
.esf-sc-select select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #555;
    padding: 0 36px 0 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    font-family: inherit;
    opacity: 1;
    box-sizing: border-box;
}
.esf-sc-select svg {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    flex-shrink: 0;
}

/* Search button */
.esf-sc-search-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
    transition: filter 0.2s, transform 0.2s;
    font-family: inherit;
}
.esf-sc-search-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* Type buttons */
.esf-sc-type-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.esf-sc-type-btn {
    padding: 12px 10px;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    line-height: 1.2;
    transition: filter 0.2s, transform 0.2s;
}
.esf-sc-type-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: white;
}

/* ── Navigation Arrows ──────────────────────────────────────────────────── */
.esf-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.35);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.esf-hero-arrow:hover {
    background: rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-50%) scale(1.05);
}
.esf-arrow-prev { left: 24px; }
.esf-arrow-next { right: 24px; }

/* ── Dots ───────────────────────────────────────────────────────────────── */
.esf-hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
}
.esf-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.esf-hero-dot.esf-dot-active {
    background: #F97316;
    width: 24px;
    border-radius: 4px;
}

/* ── Progress Bar ───────────────────────────────────────────────────────── */
.esf-hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 20;
}
.esf-hero-progress-bar {
    height: 100%;
    background: #F97316;
    width: 0;
    animation: esfProgress linear infinite;
}
@keyframes esfProgress {
    from { width: 0; }
    to   { width: 100%; }
}

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes esfFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes esfFadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Transition Effects ─────────────────────────────────────────────────── */
.esf-hero-slider[data-effect="slide"] .esf-hero-slide {
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.esf-hero-slider[data-effect="slide"] .esf-hero-slide.esf-slide-active {
    transform: translateX(0);
}
.esf-hero-slider[data-effect="slide"] .esf-hero-slide.esf-slide-exit {
    transform: translateX(-100%);
}

.esf-hero-slider[data-effect="zoom"] .esf-hero-slide {
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.esf-hero-slider[data-effect="zoom"] .esf-hero-slide.esf-slide-active {
    opacity: 1;
    transform: scale(1);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .esf-hero-content { padding: 80px 32px 60px; gap: 32px; }
    .esf-hero-search-card { width: 300px; }
}
@media (max-width: 768px) {
    .esf-hero-content {
        flex-direction: column;
        padding: 80px 20px 100px;
        align-items: flex-start;
        gap: 32px;
    }
    .esf-hero-search-card {
        width: 100%;
        max-width: 420px;
    }
    .esf-hero-t1, .esf-hero-t2, .esf-hero-t3 { font-size: clamp(32px, 9vw, 52px); }
    .esf-hero-stats { gap: 24px; }
    .esf-hero-stat-num { font-size: 28px; }
    .esf-arrow-prev { left: 12px; }
    .esf-arrow-next { right: 12px; }
}
@media (max-width: 480px) {
    .esf-hero-content { padding: 72px 16px 90px; }
    .esf-sc-type-btns { grid-template-columns: 1fr; }
}

/* ── Hero Live Search Dropdown ─────────────────────────────────────────────── */
.esf-sc-field--search-wrap {
    position: relative;
}
.esf-hero-live-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #EDE8E0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(13,27,42,.18);
    z-index: 9999;
    padding: 6px 0;
}
.esf-hld-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #aaa;
    padding: 8px 14px 4px;
}
.esf-hld-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    color: #0D1B2A;
    transition: background .12s;
    border-bottom: 1px solid #faf8f5;
}
.esf-hld-item:hover { background: #FBF8F3; }
.esf-hld-thumb {
    width: 46px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.esf-hld-no-img {
    width: 46px;
    height: 40px;
    background: #f0ede8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.esf-hld-info { flex: 1; min-width: 0; }
.esf-hld-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.esf-hld-meta {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.esf-hld-type {
    font-size: 10px;
    font-weight: 700;
    background: rgba(201,168,76,.15);
    color: #C9A84C;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
}
.esf-hld-all {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .12s;
}
.esf-hld-all:hover { background: #FBF8F3; }
.esf-hld-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 14px 10px;
}
.esf-hld-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f4f1eb;
    color: #0D1B2A;
    border-radius: 20px;
    padding: 4px 10px 4px 10px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background .12s, transform .1s;
    border: 1px solid #ede8e0;
}
.esf-hld-tag:hover {
    background: #ede8e0;
    transform: translateY(-1px);
}
.esf-hld-tag-count {
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}
.esf-hld-empty {
    padding: 16px 14px;
    font-size: 13px;
    color: #999;
    text-align: center;
}
