@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,700&display=swap');

/* ==========================================================================
   ENTER HOMES LUXURY POPUP & FLOATING REMINDER BADGE
   MOBILE-FIRST ARCHITECTURE:
     1. Mobile Base (< 768px)
     2. Tablet / iPad (min-width: 768px)
     3. Desktop (min-width: 1024px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. OVERLAY & BACKDROP (Mobile First Base)
   -------------------------------------------------------------------------- */
.eh-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 26, 48, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    padding: 12px;
    box-sizing: border-box;
}

.eh-popup-overlay.eh-active {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   2. POPUP MODAL CONTAINER (Mobile Base)
   -------------------------------------------------------------------------- */
.eh-popup-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 94vh;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid #E5C378;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(229, 195, 120, 0.25);
    overflow-y: auto;
    overflow-x: hidden;
    transform: scale(0.94) translateY(15px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.eh-popup-overlay.eh-active .eh-popup-modal {
    transform: scale(1) translateY(0);
}

/* --------------------------------------------------------------------------
   3. DYNAMIC BACKGROUND (Pure CSS & Vector SVG - No Image Used)
   -------------------------------------------------------------------------- */
.eh-dynamic-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, #FFFFFF 0%, #FFFDF9 50%, #FAF3E5 100%);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.eh-gold-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    pointer-events: none;
}

.eh-aura-tl {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(229, 195, 120, 0.45) 0%, rgba(245, 222, 179, 0.2) 60%, transparent 80%);
    animation: eh-float-glow 7s ease-in-out infinite alternate;
}

.eh-aura-br {
    width: 280px;
    height: 280px;
    bottom: -90px;
    right: -80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, rgba(184, 115, 31, 0.2) 60%, transparent 80%);
    animation: eh-float-glow 9s ease-in-out infinite alternate-reverse;
}

.eh-gold-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.6) 45%, rgba(229, 195, 120, 0.25) 50%, transparent 60%);
    background-size: 250% 250%;
    animation: eh-shimmer-sweep 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    mix-blend-mode: soft-light;
}

.eh-vector-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    pointer-events: none;
}

.eh-wave-top {
    top: 0;
    left: 0;
    opacity: 0.95;
    transform-origin: top left;
    animation: eh-wave-sway 10s ease-in-out infinite alternate;
}

.eh-wave-bottom {
    bottom: 0;
    right: 0;
    opacity: 0.85;
    transform-origin: bottom right;
    animation: eh-wave-sway-rev 12s ease-in-out infinite alternate;
}

@keyframes eh-float-glow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
    100% { transform: scale(1.18) translate(20px, 15px); opacity: 1; }
}

@keyframes eh-shimmer-sweep {
    0% { background-position: -150% 0%; }
    50%, 100% { background-position: 250% 100%; }
}

@keyframes eh-wave-sway {
    0% { transform: scaleY(1) rotate(0deg); }
    100% { transform: scaleY(1.08) rotate(1deg); }
}

@keyframes eh-wave-sway-rev {
    0% { transform: scaleY(1) rotate(0deg); }
    100% { transform: scaleY(1.06) rotate(-1.2deg); }
}

/* --------------------------------------------------------------------------
   4. CLOSE BUTTON (Mobile Base)
   -------------------------------------------------------------------------- */
.eh-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #E5C378;
    color: #8C5311;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 3px 10px rgba(140, 83, 17, 0.22);
    transition: all 0.25s ease;
}

.eh-popup-close:hover {
    background: #FFF9EE;
    border-color: #B8731F;
    transform: rotate(90deg) scale(1.1);
}

.eh-popup-close svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* --------------------------------------------------------------------------
   5. POPUP INNER CONTENT (Mobile Base: Single Column)
   -------------------------------------------------------------------------- */
.eh-popup-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 18px;
    gap: 12px;
    box-sizing: border-box;
}

/* MOBILE BANNER: Matches Popup-Mobile.png - Full View, No Cutoff */
.eh-popup-mobile-banner {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 2px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.eh-mobile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1035 / 795;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 18px;
}

/* DESKTOP/IPAD RIGHT COLUMN (Hidden on Mobile Base) */
.eh-popup-right {
    display: none;
}

/* LEFT COLUMN / TEXT CONTENT (Mobile Base: Centered) */
.eh-popup-left {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.eh-popup-logo {
    margin-bottom: 8px;
}

.eh-popup-logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* HEADLINE (Using Playfair Display Luxury Serif with sharp Vietnamese diacritics) */
.eh-popup-title {
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
    line-height: 1.28;
    text-transform: uppercase;
}

.eh-title-line-1 {
    display: block;
    color: #0F294A;
    font-size: 15px;
    letter-spacing: -0.1px;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
}

.eh-title-line-2 {
    display: block;
    font-size: 15px;
    letter-spacing: -0.1px;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
    color: #B8731F;
    background: linear-gradient(135deg, #B8731F 0%, #D4AF37 50%, #B8731F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eh-title-line-3 {
    display: block;
    color: #0F294A;
    font-size: 15px;
    letter-spacing: -0.1px;
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 800;
}

/* DIVIDER */
.eh-popup-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 8px;
    width: 85%;
}

.eh-divider-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #C59B27, #C59B27);
}

.eh-divider-line.eh-line-right {
    background: linear-gradient(90deg, #C59B27, #C59B27, transparent);
}

.eh-divider-diamond {
    width: 6px;
    height: 6px;
    background: #C59B27;
    transform: rotate(45deg);
}

/* TAGLINE */
.eh-popup-tagline {
    font-size: 11.5px;
    font-weight: 700;
    color: #0F294A;
    margin-bottom: 8px;
    line-height: 1.35;
}

.eh-popup-tagline span {
    color: #C59B27;
    margin: 0 3px;
}

/* DESCRIPTION */
.eh-popup-desc {
    font-size: 11.5px;
    line-height: 1.5;
    color: #475569;
    margin-bottom: 12px;
}

.eh-popup-desc strong {
    color: #B8731F;
    font-weight: 700;
}

/* 4 MINI BADGES (Mobile Base: 4 Columns Clean & Compact) */
.eh-popup-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-bottom: 14px;
}

.eh-badge-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #EAD8BE;
    border-radius: 10px;
    padding: 6px 2px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(197, 155, 39, 0.08);
}

.eh-badge-icon {
    width: 22px;
    height: 22px;
    color: #B8731F;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3px;
}

.eh-badge-icon svg {
    width: 17px;
    height: 17px;
}

.eh-badge-title {
    font-size: 9.5px;
    font-weight: 700;
    color: #0F294A;
    line-height: 1.2;
}

/* ACTIONS (CTA & LATER) */
.eh-popup-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.eh-btn-cta {
    flex: 1.4;
    background: linear-gradient(135deg, #B8731F 0%, #E5AC44 50%, #B8731F 100%);
    background-size: 200% auto;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 12px 10px;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(184, 115, 31, 0.35);
    transition: all 0.3s ease;
}

.eh-btn-cta:hover {
    background-position: right center;
    transform: translateY(-1px);
    color: #ffffff;
}

.eh-btn-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.eh-cta-cart-icon {
    width: 15px !important;
    height: 15px !important;
}

.eh-cta-arrow-icon {
    transition: transform 0.25s ease;
}

.eh-btn-cta:hover .eh-cta-arrow-icon {
    transform: translateX(3px);
}

.eh-btn-later {
    flex: 0.8;
    background: #ffffff;
    border: 1.5px solid #E5C378;
    color: #0F294A;
    font-size: 12px;
    font-weight: 600;
    padding: 11px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.eh-btn-later:hover {
    background: #FFFDF9;
    border-color: #B8731F;
}

/* FLOATING REMINDER BADGE (Mobile Base) */
/* FLOATING REMINDER BADGE (Mobile Base: Always pinned bottom right, above bottom sticky bar) */
.eh-reminder-badge {
    position: fixed;
    bottom: 68px; /* Cách bottom ít nhất 50px và nằm trên thanh ghim mobile */
    right: 14px;
    z-index: 99995;
    background: #0E294B;
    border: 1.5px solid #E5C378;
    color: #ffffff;
    padding: 7px 15px 7px 8px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(11, 26, 48, 0.4), 0 0 15px rgba(229, 195, 120, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.eh-reminder-badge.eh-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.eh-reminder-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 28px rgba(11, 26, 48, 0.5), 0 0 20px rgba(229, 195, 120, 0.5);
    border-color: #FCE7A6;
}

.eh-reminder-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B8731F, #E5AC44);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    animation: eh-pulse 2.5s infinite;
}

.eh-reminder-icon svg {
    width: 15px;
    height: 15px;
}

.eh-reminder-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.eh-reminder-sub {
    font-size: 8.5px;
    text-transform: uppercase;
    color: #E5C378;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.eh-reminder-main {
    font-size: 11.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 4px;
}

.eh-reminder-main svg {
    width: 12px;
    height: 12px;
    color: #E5C378;
    flex-shrink: 0;
}

@keyframes eh-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(229, 172, 68, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(229, 172, 68, 0); }
}

/* --------------------------------------------------------------------------
   6. IPAD & TABLET (min-width: 768px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .eh-popup-overlay {
        padding: 20px;
    }

    .eh-popup-modal {
        max-width: 860px;
        max-height: none;
        overflow: hidden;
        border-radius: 26px;
    }

    .eh-popup-close {
        top: 14px;
        right: 18px;
        width: 36px;
        height: 36px;
    }

    .eh-popup-close svg {
        width: 18px;
        height: 18px;
    }

    /* Hide Mobile Banner */
    .eh-popup-mobile-banner {
        display: none;
    }

    /* 2 Columns Layout */
    .eh-popup-content {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        padding: 28px 24px 26px 30px;
        gap: 20px;
        align-items: center;
    }

    /* Left Column */
    .eh-popup-left {
        text-align: left;
    }

    .eh-popup-logo {
        margin-bottom: 12px;
    }

    .eh-popup-logo img {
        height: 42px;
        margin: 0;
    }

    .eh-popup-title {
        margin-bottom: 12px;
    }

    .eh-title-line-1, .eh-title-line-2, .eh-title-line-3 {
        font-size: 18px;
    }

    .eh-popup-divider {
        justify-content: flex-start;
        margin: 0 0 12px 0;
        width: 100%;
    }

    .eh-popup-tagline {
        font-size: 12.5px;
        margin-bottom: 10px;
    }

    .eh-popup-desc {
        font-size: 12.5px;
        margin-bottom: 16px;
    }

    .eh-popup-badges {
        gap: 7px;
        margin-bottom: 20px;
    }

    .eh-badge-item {
        padding: 8px 4px 7px;
        border-radius: 12px;
    }

    .eh-badge-icon {
        width: 26px;
        height: 26px;
        margin-bottom: 4px;
    }

    .eh-badge-icon svg {
        width: 20px;
        height: 20px;
    }

    .eh-badge-title {
        font-size: 10.5px;
    }

    .eh-popup-actions {
        flex-direction: row;
        gap: 12px;
    }

    .eh-btn-cta {
        flex: 1.35;
        font-size: 13px;
        padding: 13px 18px;
        border-radius: 14px;
    }

    .eh-btn-cta svg {
        width: 16px;
        height: 16px;
    }

    .eh-btn-later {
        flex: 0.85;
        font-size: 13px;
        padding: 12px 14px;
        border-radius: 14px;
    }

    /* Show Right Column (Building Card) */
    .eh-popup-right {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        min-height: 400px;
    }

    .eh-building-card {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .eh-building-img {
        max-width: 100%;
        max-height: 440px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        transition: transform 0.6s ease;
    }

    .eh-building-card:hover .eh-building-img {
        transform: scale(1.02);
    }

    /* Reminder Badge Tablet (Cách bottom tối thiểu 50px) */
    .eh-reminder-badge {
        bottom: 50px;
        right: 24px;
        padding: 8px 18px 8px 10px;
    }

    .eh-reminder-icon {
        width: 32px;
        height: 32px;
    }

    .eh-reminder-icon svg {
        width: 16px;
        height: 16px;
    }

    .eh-reminder-sub {
        font-size: 9.5px;
    }

    .eh-reminder-main {
        font-size: 12px;
    }
}

/* --------------------------------------------------------------------------
   7. DESKTOP (min-width: 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .eh-popup-modal {
        max-width: 960px;
        border-radius: 28px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 35px rgba(212, 175, 55, 0.28);
    }

    .eh-popup-close {
        top: 14px;
        right: 20px;
        width: 38px;
        height: 38px;
    }

    .eh-popup-content {
        padding: 34px 34px 30px 38px;
        gap: 24px;
    }

    .eh-popup-logo {
        margin-bottom: 14px;
    }

    .eh-popup-logo img {
        height: 48px;
    }

    .eh-title-line-1, .eh-title-line-2, .eh-title-line-3 {
        font-size: 20px;
    }

    .eh-popup-divider {
        margin-bottom: 14px;
    }

    .eh-popup-tagline {
        font-size: 13.5px;
        margin-bottom: 12px;
    }

    .eh-popup-desc {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .eh-popup-badges {
        gap: 8px;
        margin-bottom: 22px;
    }

    .eh-badge-item {
        padding: 10px 4px 8px;
    }

    .eh-badge-title {
        font-size: 11px;
    }

    .eh-btn-cta {
        font-size: 13.5px;
        padding: 14px 20px;
    }

    .eh-btn-later {
        font-size: 13.5px;
        padding: 13px 16px;
    }

    .eh-popup-right {
        min-height: 440px;
    }

    .eh-building-img {
        max-height: 490px;
    }

    .eh-reminder-badge {
        bottom: 50px;
        right: 30px;
        padding: 9px 20px 9px 12px;
    }

    .eh-reminder-sub {
        font-size: 10px;
    }

    .eh-reminder-main {
        font-size: 12.5px;
    }
}
