/* ===========================
   RESET OLD THEME HEADER CONFLICTS
=========================== */
.main-header { display: none !important; }
.main-footer { display: none !important; }

#main {
    position: relative !important;
    top: auto !important;
    opacity: 1 !important;
}

/* ===========================
   HERO CAROUSEL
=========================== */
.hero-carousel { position: relative; }

.carousel-item {
    height: 480px;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 2;
    color: #fff;
}

/* ===========================
   TOP AD
=========================== */
.top-ad h4 { font-weight: 500; font-size: 22px; }
.top-ad p  { font-size: 14px; margin-bottom: 10px; }

.explore-btn {
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    padding: 6px 18px;
    border-radius: 4px;
}
.explore-btn:hover { background: #fff; color: #000; }

.qr-box {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================
   SEARCH CARD
=========================== */
.search-card {
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 20px 25px 25px;
    z-index: 3;
}

/* Tabs row — tabs on left, Post Property button on right */
.search-tabs-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    gap: 10px;
}
.search-tabs-row .nav-tabs {
    border-bottom: none;
    flex: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 0;
}
.search-tabs-row .nav-tabs::-webkit-scrollbar { display: none; }
.search-tabs-row .nav-tabs .nav-link {
    border: none;
    font-weight: 500;
    color: #555;
    padding: 10px 13px;
    white-space: nowrap;
}
.search-tabs-row .nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
}
.search-tabs-row .post-property-btn {
    flex-shrink: 0;
    margin-bottom: 6px;
}

/* Dropdowns & inputs */
.search-card .form-select {
    height: 50px;
    border-radius: 10px;
    transition: all .3s ease;
}
.search-card .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13,110,253,.15);
    transform: scale(1.02);
}
.search-card .form-control { height: 50px; }
.search-card .input-group-text { background: #fff; }

.search-btn {
    height: 50px;
    border-radius: 10px;
    font-weight: 500;
    margin-top: auto;
}

.tab-content { display: block; }

/* ===========================
   POST PROPERTY BUTTON
=========================== */
@keyframes ppPulse {
    0%   { box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
    70%  { box-shadow: 0 0 0 10px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@keyframes ppShine {
    0%   { left: -75%; }
    100% { left: 125%; }
}

.post-property-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 18px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.4px;
    box-shadow: 0 4px 14px rgba(22,163,74,.45);
    transition: all .25s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    animation: ppPulse 2s infinite;
}
.post-property-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
    animation: ppShine 2.5s infinite;
}
.post-property-btn:hover {
    background: linear-gradient(135deg, #15803d 0%, #0f766e 100%);
    box-shadow: 0 6px 20px rgba(22,163,74,.55);
    transform: translateY(-2px) scale(1.03);
    color: #fff !important;
}
.post-property-btn .free-badge {
    background: #fbbf24;
    color: #78350f;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ===========================
   POST PROPERTY PAGE
=========================== */
.pp-hero {
    background: linear-gradient(135deg, #0f4c81 0%, #16a34a 100%);
    padding: 60px 0 40px;
    color: #fff;
    text-align: center;
}
.pp-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.pp-hero p  { font-size: 15px; opacity: .85; margin: 0; }

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 36px auto 32px;
    max-width: 600px;
}
.step-item { flex: 1; text-align: center; position: relative; }
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px; left: 50%; width: 100%; height: 2px;
    background: #dee2e6; z-index: 0;
}
.step-item.done::after,
.step-item.active::after { background: #16a34a; }

.step-circle {
    width: 36px; height: 36px; border-radius: 50%;
    background: #dee2e6; color: #888; font-weight: 700; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    position: relative; z-index: 1; transition: all .3s;
}
.step-item.active .step-circle { background: #16a34a; color: #fff; box-shadow: 0 0 0 4px rgba(22,163,74,.2); }
.step-item.done   .step-circle { background: #0f4c81; color: #fff; }

.step-label { font-size: 11px; color: #666; margin-top: 6px; font-weight: 500; }
.step-item.active .step-label { color: #16a34a; font-weight: 700; }

/* Form card */
.pp-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    padding: 36px 40px;
    max-width: 820px;
    margin: 0 auto 60px;
}
.pp-card h4 {
    font-size: 18px; font-weight: 700; color: #1e293b;
    margin-bottom: 20px;
    border-left: 4px solid #16a34a;
    padding-left: 12px;
}
.pp-card .form-label { font-weight: 600; font-size: 13px; color: #374151; }
.pp-card .form-control,
.pp-card .form-select {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    padding: 10px 14px;
    transition: border-color .2s;
    height: auto;
}
.pp-card .form-control:focus,
.pp-card .form-select:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,.12);
    transform: none;
}

.upload-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #f8fafc;
}
.upload-zone:hover { border-color: #16a34a; background: #f0fdf4; }
.upload-zone i { font-size: 32px; color: #94a3b8; }
.upload-zone p { margin: 8px 0 0; font-size: 13px; color: #64748b; }

.btn-pp-next {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; border: none; padding: 12px 32px;
    border-radius: 10px; font-weight: 600; font-size: 15px; transition: all .25s;
}
.btn-pp-next:hover {
    background: linear-gradient(135deg, #15803d, #166534);
    transform: translateY(-1px); color: #fff;
}
.btn-pp-prev {
    background: #f1f5f9; color: #475569; border: none;
    padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
}
.btn-pp-prev:hover { background: #e2e8f0; }

.pp-step-panel { display: none; }
.pp-step-panel.active { display: block; }

.amenity-check label { font-size: 13px; font-weight: 500; }

.pp-success-box { text-align: center; padding: 40px 20px; }
.pp-success-box i { font-size: 64px; color: #16a34a; }
.pp-success-box h3 { font-size: 24px; font-weight: 700; margin: 16px 0 8px; }
.pp-success-box p { color: #64748b; }

/* ===========================
   AUTH MODAL (slides from top)
=========================== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
}
.auth-modal.open { display: flex; }

.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
}
.auth-modal-box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    padding: 32px 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: slideDown .35s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
.auth-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    font-size: 18px; color: #94a3b8; cursor: pointer;
    transition: color .2s;
}
.auth-modal-close:hover { color: #1e293b; }

.auth-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-tab {
    flex: 1;
    border: none;
    background: none;
    padding: 9px 0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    transition: all .2s;
}
.auth-tab.active {
    background: #fff;
    color: #16a34a;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 14px;
}
.auth-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.auth-alert-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

.auth-form-group { margin-bottom: 14px; }
.auth-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.auth-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}
.auth-input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.1); }

.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    margin-top: 6px;
    transition: all .25s;
}
.auth-submit-btn:hover { background: linear-gradient(135deg, #15803d, #166534); transform: translateY(-1px); }
.auth-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* ===========================
   HEADER & FOOTER MENU FIXES
   Improve layout and spacing for header/topbar and footer widgets
=========================== */
.header-top { padding: 12px 0; background: transparent; }
.header-top .header-top-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-top .customer-support,
.header-top .cart-button-area { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
.header-top .customer-support .logo img { max-height: 64px; width: auto; display: block; }
.header-top .customer-support .st-menu1 a,
.header-top .cart-button-area .st-menu1 a { color: #111827; font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 6px; }
.header-top .cart-button-area .st-menu1 a { border: 1px solid transparent; }
.header-top .cart-button-area .st-menu1 a:hover { background: #f8fafc; border-color: #e6e9ef; }

.scrollToTop { right: 18px; }

/* Footer menus */
.footer-widget { color: #6b7280; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; }
.footer-widget ul li { margin: 6px 0; }
.footer-widget ul.footer-menu-inline li { display: inline-block; margin-right: 12px; }
.footer-widget a { color: inherit; text-decoration: none; }
.footer-widget a:hover { color: #111827; text-decoration: underline; }

@media (max-width: 991px) {
    .header-top .header-top-wrapper { flex-direction: column; align-items: flex-start; }
    .header-top .cart-button-area { align-self: flex-end; }
}

.auth-switch-text {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 14px;
    margin-bottom: 0;
    padding-bottom: 0;
}
.auth-switch-text a { color: #16a34a; font-weight: 600; text-decoration: none; }

body.auth-modal-open { overflow: hidden; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin .7s linear infinite; }

/* ===========================
   TOP BAR (Premium)
=========================== */
.site-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar-left span {
    display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.topbar-left i { color: #38bdf8; font-size: 14px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-right a {
    color: #94a3b8; font-size: 15px; transition: all .3s ease; line-height: 1;
}
.topbar-right a:hover { color: #38bdf8; transform: translateY(-2px); }

/* ===========================
   MAIN HEADER (Glassmorphism & Premium UI)
=========================== */
.site-header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
    float: none !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}
.site-header .container {
    max-width: 1400px; width: 94%; margin: 0 auto; position: relative; z-index: 5;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px;
}

/* Logo */
.site-logo {
    display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0;
    transition: transform .3s ease;
}
.site-logo:hover { transform: scale(1.02); }
.site-logo img {
    height: 48px; width: 48px; object-fit: cover; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
    font-size: 20px; font-weight: 800; color: #0f172a; letter-spacing: -.5px;
    font-family: 'Inter', sans-serif;
}
.logo-sub {
    font-size: 11px; font-weight: 700; color: #10b981; text-transform: uppercase; letter-spacing: 1.5px;
}

/* Nav */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul {
    display: flex !important; align-items: center; gap: 8px; list-style: none !important;
    margin: 0 !important; padding: 0 !important; float: none !important;
    background: none !important; border: none !important; box-shadow: none !important;
}
.site-nav > ul > li { position: relative !important; }
.site-nav > ul > li > a {
    display: flex !important; align-items: center; gap: 6px; padding: 10px 16px !important;
    font-size: 15px !important; font-weight: 600 !important; color: #475569 !important;
    text-decoration: none !important; border-radius: 8px; transition: all .3s ease;
    position: relative; overflow: hidden;
}
.site-nav > ul > li > a::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: #10b981; transition: all .3s ease; transform: translateX(-50%);
}
.site-nav > ul > li > a:hover::after, .site-nav > ul > li > a.active::after { width: 60%; }
.site-nav > ul > li > a:hover, .site-nav > ul > li > a.active {
    color: #10b981 !important; background: rgba(16, 185, 129, 0.05) !important;
}
.site-nav > ul > li > a i { font-size: 12px; transition: transform .3s; }
.site-nav > ul > li.has-dropdown:hover > a i,
.site-nav > ul > li.has-dropdown.open > a i { transform: rotate(180deg); }

/* ===========================
   NAV DROPDOWN
=========================== */
.has-dropdown { position: relative !important; }

/* Hover bridge — stops dropdown closing when mouse travels down */
.has-dropdown::after {
    content: ''; position: absolute;
    top: 100%; left: 0; right: 0; height: 20px; z-index: 1098;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15,23,42,.14), 0 4px 16px rgba(15,23,42,.06);
    border: 1px solid #eef2f7;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 1099;
    pointer-events: none;
}

/* Caret arrow */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -7px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px; height: 14px;
    background: #0f172a;
    border-radius: 2px 0 0 0;
    z-index: 2;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Header band */
.nav-dropdown-header {
    background: linear-gradient(135deg, #0f172a 0%, #1a3a5c 100%);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-dropdown-header i { font-size: 16px; color: #10b981; }
.nav-dropdown-header span {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Items */
.nav-dropdown-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dd-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 11px 12px !important;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .18s ease;
}
.nav-dd-item:hover { background: #f8fafc; }

.nav-dd-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.nav-dd-item:hover .nav-dd-icon { transform: scale(1.1); }

.nav-dd-icon--amber { background: #fef3c7; color: #d97706; }
.nav-dd-icon--blue  { background: #dbeafe; color: #2563eb; }
.nav-dd-icon--green { background: #d1fae5; color: #059669; }

.nav-dd-text {
    display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.nav-dd-text strong {
    font-size: 13px; font-weight: 700; color: #0f172a; line-height: 1.2;
}
.nav-dd-text span {
    font-size: 11px; color: #64748b; font-weight: 400;
}

.nav-dd-arrow {
    font-size: 11px; color: #cbd5e1; flex-shrink: 0;
    transition: transform .18s ease, color .18s ease;
}
.nav-dd-item:hover .nav-dd-arrow { color: #10b981; transform: translateX(3px); }

/* Footer CTA */
.nav-dropdown-footer {
    border-top: 1px solid #f1f5f9;
    padding: 11px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafbfc;
}
.nav-dropdown-footer > span { font-size: 11px; color: #94a3b8; font-weight: 500; }
.nav-dropdown-footer > a {
    font-size: 11px; font-weight: 700; color: #10b981 !important;
    text-decoration: none !important;
    display: flex; align-items: center; gap: 4px;
    transition: gap .18s ease;
}
.nav-dropdown-footer > a:hover { gap: 7px; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-header-signin {
    display: flex; align-items: center; gap: 6px; background: transparent;
    border: 2px solid #e2e8f0; color: #475569; padding: 8px 20px;
    border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: all .3s ease; white-space: nowrap;
}
.btn-header-signin:hover { border-color: #0f172a; color: #0f172a; background: rgba(15,23,42,.02); }
.btn-header-register {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: none; color: #fff;
    padding: 10px 24px; border-radius: 50px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); white-space: nowrap;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-header-register:hover {
    transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* User dropdown */
.user-dropdown { position: relative; }
.user-dropdown-btn {
    display: flex; align-items: center; gap: 10px; background: #fff;
    border: 1px solid #e2e8f0; padding: 6px 16px 6px 6px; border-radius: 50px;
    cursor: pointer; transition: all .3s ease; font-size: 14px; font-weight: 600; color: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.user-dropdown-btn:hover { border-color: #10b981; box-shadow: 0 4px 12px rgba(16,185,129,.1); }
.user-avatar {
    width: 34px; height: 34px; background: linear-gradient(135deg, #10b981, #059669); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; flex-shrink: 0; box-shadow: inset 0 2px 4px rgba(255,255,255,.2);
}
.user-dropdown-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown-btn i { font-size: 12px; color: #64748b; transition: transform .3s; }
.user-dropdown.open .user-dropdown-btn i { transform: rotate(180deg); }
.user-dropdown-menu {
    position: absolute; top: calc(100% + 15px); right: 0;
    background: #fff; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.1);
    min-width: 200px; padding: 10px; border: 1px solid #f1f5f9;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 999;
}
.user-dropdown.open .user-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-menu a, .user-dropdown-menu button {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px;
    font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; border-radius: 10px;
    background: none; border: none; cursor: pointer; transition: all .2s; text-align: left;
}
.user-dropdown-menu a:hover { background: rgba(16,185,129,.08); color: #10b981; transform: translateX(4px); }
.user-dropdown-menu button:hover { background: #fef2f2; color: #ef4444; transform: translateX(4px); }
.user-dropdown-menu i { font-size: 16px; width: 20px; text-align: center; }
.user-dropdown-menu hr { margin: 8px 0; border-color: #f1f5f9; }

/* Mobile toggle */
.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 6px; background: none; border: none;
    cursor: pointer; padding: 6px; margin-left: 8px; z-index: 1001;
}
.mobile-menu-toggle span {
    display: block; width: 28px; height: 3px; background: #0f172a; border-radius: 3px;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: #ef4444; }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: #ef4444; }

/* ===========================
   FOOTER (Premium Dark Mode)
=========================== */
.site-footer {
    background: #0B1120 !important; /* Deep modern slate */
    color: #94a3b8; margin-top: 80px; float: none !important; padding: 0 !important; width: 100% !important;
    position: relative; overflow: hidden;
}
.site-footer::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16,185,129,.5), transparent);
}
.site-footer p { color: inherit; text-align: left; padding-bottom: 0; }
.footer-top { padding: 80px 0 60px; border-bottom: 1px solid rgba(255,255,255,.05); position: relative; z-index: 2; }

/* Footer brand */
.footer-brand { padding-right: 30px; }
.footer-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 24px; }
.footer-logo img {
    height: 52px; width: 52px; object-fit: cover; border-radius: 12px;
    border: 2px solid rgba(255,255,255,.1); box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.footer-logo-name { display: block; font-size: 24px; font-weight: 800; color: #f8fafc; letter-spacing: -.5px; }
.footer-logo-sub { display: block; font-size: 11px; font-weight: 700; color: #10b981; text-transform: uppercase; letter-spacing: 2px; }
.footer-desc { font-size: 14px; line-height: 1.8; color: #94a3b8; margin-bottom: 28px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    width: 42px; height: 42px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; font-size: 18px; text-decoration: none; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-socials a:hover {
    background: linear-gradient(135deg, #10b981, #059669); border-color: transparent; color: #fff;
    transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 20px rgba(16,185,129,.3);
}

/* Footer widget */
.site-footer .footer-widget-title {
    font-size: 15px !important; font-weight: 700 !important; color: #f8fafc !important;
    text-transform: uppercase !important; letter-spacing: 1.5px !important; margin-bottom: 28px !important;
    padding-bottom: 12px !important; display: inline-block !important; text-align: left !important; float: none !important;
    position: relative;
}
.site-footer .footer-widget-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px;
    background: linear-gradient(90deg, #10b981, transparent); border-radius: 3px;
}
.site-footer .footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.site-footer .footer-links li {
    margin-bottom: 14px !important; float: none !important; width: auto !important; padding: 0 !important; position: static !important; border: none !important;
}
.site-footer .footer-links li::before { display: none !important; }
.site-footer .footer-links a {
    color: #94a3b8 !important; text-decoration: none !important; font-size: 14px !important; font-weight: 500 !important;
    transition: all .3s ease; display: inline-flex !important; align-items: center; gap: 8px; float: none !important; padding: 0 !important;
}
.site-footer .footer-links a::before {
    content: '\F285' !important; /* bootstrap-icons chevron-right */ font-family: 'bootstrap-icons' !important;
    font-size: 12px !important; color: #10b981 !important; transition: transform .3s ease;
}
.site-footer .footer-links a:hover { color: #10b981 !important; transform: translateX(6px); }

/* Footer contact list */
.site-footer .footer-contact-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.site-footer .footer-contact-list li {
    display: flex !important; align-items: flex-start; gap: 16px; margin-bottom: 20px !important;
    font-size: 14px; color: #cbd5e1; float: none !important; width: 100% !important; font-weight: 400 !important; border: none !important; padding: 0 !important; line-height: 1.6;
}
.site-footer .footer-contact-list li span:not(.fc-icon) { float: none !important; min-width: auto !important; margin-top: 4px; }
.fc-icon {
    width: 38px; height: 38px; background: rgba(16,185,129,.1); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #10b981; font-size: 16px;
    transition: all .3s ease; border: 1px solid rgba(16,185,129,.2);
}
.site-footer .footer-contact-list li:hover .fc-icon {
    background: #10b981; color: #fff; transform: scale(1.1);
}
.site-footer .footer-contact-list a { color: #cbd5e1 !important; text-decoration: none; transition: color .3s; float: none !important; }
.site-footer .footer-contact-list a:hover { color: #10b981 !important; }

/* Footer bottom */
.footer-bottom { padding: 24px 0; background: #040914; position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.03); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner p { margin: 0; font-size: 13px; color: #64748b; font-weight: 500; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1200px) {
    .search-card { width: 90%; }
}
@media (max-width: 992px) {
    .carousel-item { height: 420px; }
    .search-card { position: relative; bottom: auto; transform: none; width: 95%; margin: -60px auto 0; }
    .site-nav {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); z-index: 999;
        flex-direction: column; padding: 100px 30px 40px; overflow-y: auto;
    }
    .site-nav.open { display: flex; animation: fadeIn .3s ease; }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    .site-nav ul { flex-direction: column; gap: 12px; width: 100%; }
    .site-nav > ul > li { width: 100%; }
    .site-nav > ul > li > a {
        padding: 16px 20px !important; font-size: 18px !important; border-radius: 12px;
        background: #f8fafc; border: 1px solid #f1f5f9; justify-content: space-between;
    }
    .site-nav > ul > li > a::after { display: none; }
    .nav-dropdown {
        position: static !important;
        opacity: 1 !important; visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        margin: 8px 0 4px !important;
        display: none;
        width: 100% !important;
        pointer-events: auto;
    }
    .nav-dropdown::before { display: none; }
    .nav-dropdown-footer { display: none; }
    .has-dropdown.open .nav-dropdown { display: block; }
    .has-dropdown::after { display: none; }
    .mobile-menu-toggle { display: flex; }
    .topbar-left span:nth-child(2), .topbar-left span:nth-child(3) { display: none; }
    .header-inner { height: 70px; }
}
@media (max-width: 768px) {
    .top-ad { text-align: center; }
    .qr-box  { display: none; }
    .carousel-item { height: 380px; }
    .search-card { padding: 18px; }
    .pp-card { padding: 24px 16px; }
    .pp-hero h1 { font-size: 24px; }
    .search-tabs-row { flex-wrap: wrap; }
    .search-tabs-row .nav-tabs { order: 2; width: 100%; }
    .search-tabs-row .post-property-btn { order: 1; margin-left: auto; margin-bottom: 8px; }
    .auth-modal-box { margin: 0 16px; padding: 24px 20px; }
    .btn-header-signin, .btn-header-register { display: none; }
    .user-dropdown-name { display: none; }
    .footer-top { padding: 50px 0 40px; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .site-topbar { display: none; }
}
@media (max-width: 576px) {
    .carousel-item { height: 320px; }
    .search-btn { margin-top: 10px; }
    .header-inner { height: 64px; }
    .site-logo img { height: 40px; width: 40px; }
    .logo-name { font-size: 18px; }
    .site-nav > ul > li > a { font-size: 16px !important; padding: 14px 16px !important; }
}

/* ===== USER PROFILE PAGE ===== */
.profile-page { background: #f1f5f9; padding-bottom: 60px; }
.profile-hero {
    position: relative;
    padding: 48px 0 56px;
    overflow: hidden;
}
.profile-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0f172a 100%),
        radial-gradient(ellipse 70% 80% at 10% 20%, rgba(99,102,241,.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 80%, rgba(16,185,129,.25) 0%, transparent 50%);
}
.profile-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}
.profile-avatar-wrap { text-align: center; }
.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #10b981);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(99,102,241,.45);
    border: 4px solid rgba(255,255,255,.2);
}
.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: .78rem;
    font-weight: 600;
    color: #a5b4fc;
    background: rgba(255,255,255,.08);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,.12);
}
.profile-status i { color: #10b981; }
.profile-hero-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -.5px;
    text-align: left;
}
.profile-email, .profile-location {
    color: rgba(255,255,255,.65);
    font-size: .95rem;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.profile-btn:hover { transform: translateY(-2px); text-decoration: none; }
.profile-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    box-shadow: 0 6px 20px rgba(99,102,241,.4);
}
.profile-btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(99,102,241,.5); }
.profile-btn-outline {
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    backdrop-filter: blur(8px);
}
.profile-btn-outline:hover { background: rgba(255,255,255,.18); color: #fff; }
.profile-btn-outline-dark {
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.profile-btn-outline-dark:hover { border-color: #6366f1; color: #6366f1; }

.profile-body { margin-top: -28px; position: relative; z-index: 2; }
.profile-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.profile-stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    border: 1px solid #e2e8f0;
    transition: transform .2s, box-shadow .2s;
}
.profile-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(15,23,42,.1);
}
.profile-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.profile-stat-icon.sale { background: linear-gradient(135deg, #10b981, #059669); }
.profile-stat-icon.rent { background: linear-gradient(135deg, #f59e0b, #d97706); }
.profile-stat-icon.member { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.profile-stat-num {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.profile-stat-num.profile-stat-text { font-size: 1rem; }
.profile-stat-label {
    font-size: .75rem;
    color: #64748b;
    font-weight: 500;
}

.profile-side-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(15,23,42,.06);
    border: 1px solid #e2e8f0;
}
.profile-side-card h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-side-card h5 i { color: #6366f1; }
.profile-quick-links { list-style: none; padding: 0; margin: 0; }
.profile-quick-links li { margin-bottom: 4px; }
.profile-quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #475569;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s;
}
.profile-quick-links a:hover {
    background: rgba(99,102,241,.08);
    color: #6366f1;
    transform: translateX(4px);
}
.profile-quick-links a i { width: 20px; text-align: center; color: #6366f1; }

.profile-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(15,23,42,.06);
    border: 1px solid #e2e8f0;
}
.profile-card-head {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}
.profile-card-head h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.profile-card-head h3 i { color: #6366f1; }
.profile-card-head span { font-size: .85rem; color: #64748b; }

.profile-label {
    display: block;
    font-weight: 600;
    font-size: .82rem;
    color: #374151;
    margin-bottom: 6px;
}
.profile-label span { color: #ef4444; }
.profile-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    background: #f8fafc;
}
.profile-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    background: #fff;
}
.profile-input:disabled { opacity: .7; cursor: not-allowed; }
.profile-hint { font-size: .75rem; color: #94a3b8; margin-top: 4px; display: block; }
.profile-field-error { color: #ef4444; font-size: .78rem; margin-top: 4px; display: block; }
.profile-form-actions { margin-top: 20px; }

.profile-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: 20px;
}
.profile-alert.success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.profile-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.profile-empty {
    text-align: center;
    padding: 48px 24px;
}
.profile-empty i {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 16px;
    display: block;
}
.profile-empty h4 { font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.profile-empty p { color: #64748b; margin-bottom: 20px; }

.profile-listings { display: flex; flex-direction: column; gap: 14px; }
.profile-listing-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.profile-listing-item:hover {
    border-color: #c7d2fe;
    box-shadow: 0 6px 20px rgba(99,102,241,.1);
    transform: translateY(-2px);
}
.profile-listing-img {
    flex-shrink: 0;
    width: 88px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
}
.profile-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-listing-body { flex: 1; min-width: 0; }
.profile-listing-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-listing-tags .tag {
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.profile-listing-tags .tag.blue { background: #dbeafe; color: #1d4ed8; }
.profile-listing-tags .tag.green { background: #d1fae5; color: #047857; }
.profile-listing-body h4 {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.profile-listing-body h4 a { color: #0f172a; text-decoration: none; }
.profile-listing-body h4 a:hover { color: #6366f1; }
.profile-listing-meta {
    font-size: .8rem;
    color: #64748b;
    margin: 0;
}
.profile-listing-date { font-size: .72rem; color: #94a3b8; }
.profile-listing-view {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .2s, color .2s;
}
.profile-listing-view:hover {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
}

@media (max-width: 991px) {
    .profile-hero-inner { flex-direction: column; text-align: center; }
    .profile-email, .profile-location { justify-content: center; }
    .profile-hero-actions { justify-content: center; }
}
@media (max-width: 576px) {
    .profile-stat-grid { grid-template-columns: 1fr; }
    .profile-card { padding: 20px 16px; }
    .profile-listing-item { flex-wrap: wrap; }
    .profile-listing-view { margin-left: auto; }
}
