/**
 * Batdongsan24h.net - Hero Slider & Instant Search Styles
 * GPU-accelerated, Compact Autocomplete, Zero Layout Shift
 */

/* Hero Banner Section Container */
.dx-hero-section {
    position: relative;
    width: 100%;
    min-height: 480px;
    max-height: 580px;
    height: 520px;
    overflow: hidden;
    background-color: #e2e8f0;
    box-sizing: border-box;
}

/* Background Swiper Slider */
.dx-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.dx-hero-slider .swiper-wrapper,
.dx-hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
}
.dx-hero-slide-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.02);
    transition: transform 6s ease-out;
}
.dx-hero-slider .swiper-slide-active .dx-hero-slide-bg {
    transform: scale(1.08);
}

/* Translucent Soft Light Overlay for High Contrast Text */
.dx-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0.25) 45%,
        rgba(255, 255, 255, 0.75) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero Content Area */
.dx-hero-content-wrap {
    position: relative;
    z-index: 3;
    max-width: 960px;
    margin: 0 auto;
    padding: 110px 20px 40px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Hero Titles */
.dx-hero-badge-title {
    font-size: 18px;
    font-weight: 700;
    color: #0e2638;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.dx-hero-main-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f4c3a;
    line-height: 1.25;
    margin: 0 0 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}
.dx-hero-highlight-italic {
    font-style: italic;
    color: #007749;
    font-weight: 800;
}
.dx-hero-features-list {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 18px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.dx-hero-features-list span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.dx-hero-features-list .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #94a3b8;
}

/* ==========================================================================
   COMPACT INSTANT SEARCH BAR (Single Keyword Autocomplete)
   ========================================================================== */
.dx-hero-search-container {
    width: 100%;
    max-width: 560px;
    position: relative;
    margin: 0 auto;
    z-index: 10;
}

.dx-search-bar-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    position: relative;
}

.dx-search-bar-wrap:focus-within {
    border-color: #0f4c3a;
    box-shadow: 0 14px 40px rgba(15, 76, 58, 0.22);
}

.dx-search-lens {
    width: 18px;
    height: 18px;
    color: #64748b;
    margin-right: 12px;
    flex-shrink: 0;
}

.dx-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #0f172a;
    font-weight: 500;
    padding: 8px 0;
    font-family: inherit;
    box-sizing: border-box;
}
.dx-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Clear button */
.dx-search-clear {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 20px;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.15s;
}
.dx-search-clear:hover {
    color: #475569;
}

/* Search Submit Button */
.dx-btn-hero-search {
    background: linear-gradient(135deg, #0f4c3a 0%, #007749 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 11px 24px;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(15, 76, 58, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}
.dx-btn-hero-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 76, 58, 0.38);
}
.dx-btn-hero-search:active {
    transform: translateY(0);
}

/* ==========================================================================
   INSTANT PREDICTIVE SUGGEST DROPDOWN
   ========================================================================== */
.dx-suggest-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    max-height: 420px;
    overflow-y: auto;
    z-index: 10000;
    text-align: left;
    display: none;
    animation: dxSuggestDrop 0.18s ease-out;
    padding: 8px 0;
    box-sizing: border-box;
}

@keyframes dxSuggestDrop {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Group Headers */
.dx-suggest-group-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    padding: 10px 18px 4px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dx-suggest-group-title .re-icon {
    width: 13px;
    height: 13px;
}

/* Individual Suggestion Items */
.dx-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    color: #1e293b;
    text-decoration: none;
    transition: background-color 0.12s ease;
    cursor: pointer;
    gap: 12px;
}
.dx-suggest-item:hover,
.dx-suggest-item.is-selected {
    background-color: #f1f5f9;
    color: #0f4c3a;
    text-decoration: none;
}
.dx-suggest-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dx-suggest-item-icon {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}
.dx-suggest-item:hover .dx-suggest-item-icon,
.dx-suggest-item.is-selected .dx-suggest-item-icon {
    color: #0f4c3a;
}
.dx-suggest-item-title {
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dx-suggest-item-title mark {
    background: transparent;
    color: #ce050d;
    font-weight: 700;
    padding: 0;
}
.dx-suggest-item-sub {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    flex-shrink: 0;
}
.dx-suggest-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #ce050d;
    flex-shrink: 0;
}

/* Loading & Empty State */
.dx-suggest-loading,
.dx-suggest-empty {
    padding: 16px;
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
}

/* Footer: View All */
.dx-suggest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f4c3a;
    text-decoration: none;
    transition: background-color 0.15s;
}
.dx-suggest-footer:hover {
    background-color: #f8fafc;
    color: #007749;
    text-decoration: none;
}
