/* --- Global Reset & Typography --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: #2a2a33; background: #fff; }

/* --- NAVIGATION --- */
.navbar {
    height: 70px;
    background: white;
    width: 100%;
    position: relative;
    z-index: 100;
         transition: all 0.5s ease-in-out;

}

/* MOBILE NAV (Default) */
.nav-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    height: 100%;
}
.nav-desktop { display: none; } /* Hidden on mobile */

/* Hamburger */
.hamburger { cursor: pointer; 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    border: none;
    background: transparent;
}
.bar{
     font-size: 25px;
     color: #006aff;
     transition: all 0.3s ease-in-out;
     
     }

/* Logo */
.logo { height: 30px; }

/* User Icon "TI" (From your screenshot) */
.user-icon {
    width: 5rem;
    height: 2.3rem;
   background-color: #006aff;
   border-bottom-left-radius: 15px ;
   border-top-left-radius: 15px ;
   border-bottom-right-radius: 15px ;
   border-top-right-radius: 15px;
    color: #fff;   
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight:400;
    font-size: 16px;
}

/* Sidebar (Hidden by default) */
.mobile-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: 280px; height: 100%;
    background: white;
    z-index: 1001;
    transition: 0.3s ease;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}
.mobile-sidebar.active { left: 0; }
.sidebar-links { list-style: none; margin-top: 30px; }
.sidebar-links li a { display: block; padding: 15px 0; color: #333; text-decoration: none; border-bottom: 1px solid #eee; font-weight: 600; }
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; }
.overlay.active { display: block; }
#close-btn { 
    background: none; 
    border: none; 
    font-size: 30px; 
    float: right; 
    cursor: pointer;
    color: red;
 }
 .sidebar-footer {
    padding: 20px;
    border-top: 1px solid #e8e8ef;
}

.sidebar-signin {
    display: block;
    text-align: center;
    padding: 15px;
    background: #006aff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}
.sidebar-links li a {
    display: block;
    padding: 15px 20px;
    color: #2a2a33;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #f4f4f4;
    transition: background 0.2s ease;
}

.sidebar-links li a:hover,
.sidebar-links li a.active {
    background: #f8f9fa;
    color: #006aff;
}

/* --- HERO SECTION --- */
.hero {
    position: relative; 
    height: 500px;
    background: url('./images/new-1.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center; /* Center Vertically */
    justify-content: center; /* Center Horizontally */
}
/* Dark Overlay on Hero Image */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    text-align: center; /* Centered on Desktop */
}

.hero h1 {
    color: white;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.search-box {
    background: white;
    display: flex;
    padding: 10px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    font-size: 16px;
    padding: 10px;
    outline: none;
}

.search-btn {
    background: white;
    border: none;
    font-size: 20px;
    padding: 0 15px;
    cursor: pointer;
    color: #006aff;
}
/* ======================
 HOMES FOR YOU SECTION
======================
*/

/* --- Homes For You Section --- */
.homes-for-you {
    padding: 40px 0;
    background-color: #fff;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.header-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--z-text);
}

.header-content p {
    font-size: 14px;
    color: var(--z-subtext);
    margin-top: 4px;
}

/* Scroll Controls - Hidden on Mobile */
.scroll-controls {
    display: none;
}

/* Horizontal Scroll Container */
.homes-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Smooth snapping on mobile */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.homes-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Property Card Styling */
.home-card {
    min-width: 85%; /* The "Peek" effect */
    flex: 0 0 85%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--z-border);
    scroll-snap-align: start;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.card-img-box {
    position: relative;
    height: 180px;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d93c00; /* Zillow Orange/Red */
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.card-info {
    padding: 12px;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    display: block;
}

.card-details {
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0;
}

.card-address {
    font-size: 12px;
    color: var(--z-subtext);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Desktop Layout (992px and up) --- */
@media screen and (min-width: 992px) {
    .header-content h2 { font-size: 24px; }
    
    .scroll-controls {
        display: flex;
        gap: 8px;
    }

    .ctrl-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid var(--z-border);
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.2s;
    }

    .ctrl-btn:hover { background: #f6f6f9; }

    .home-card {
        min-width: 280px; /* Smaller width for grid layout */
        flex: 0 0 calc(25% - 10px); /* 4 cards per row */
    }
}



/* ======================
RECOMMENDATION SECTION
=======================
*/
/* --- BuyAbility Section --- */
.buyability {
    padding: 40px 16px;
    background-color: #fff;
}

.buy-container {
    max-width: 1200px;
    margin: 0 auto;
}

.buy-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

.buy-header p {
    font-size: 18px;
    color: #54545a;
    margin-bottom: 24px;
}

/* Loan Calculator Card */
.loan-card {
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.loan-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.loan-logo img { height: 18px; }
.loan-logo span { font-weight: 700; font-size: 17px; }

.loan-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    gap: 20px;
    margin-bottom: 24px;
}

.stat-val {
    display: block;
    font-size: 24px;
    font-weight: 800;
}

.stat-label {
    font-size: 15px;
    color: #54545a;
}

.get-started-btn {
    width: 100%;
    background-color: #006aff;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}

/* Property Carousel & Skeleton */
.property-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.skeleton-card {
    min-width: 80%; /* Mobile Peek Effect */
    border: 1px solid #e8e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.image-placeholder {
    position: relative;
    height: 180px;
    background: #f6f6f9;
}

.image-placeholder img {
    width: 100%; height: 100%; object-fit: cover;
}

.buy-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #d93c00; /* Orange badge */
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

.text-placeholders {
    padding: 16px;
}

.line {
    height: 12px;
    background: #f0f0f3; /* Grey bars from image */
    margin-bottom: 10px;
    border-radius: 6px;
}

.line.long { width: 90%; }
.line.med { width: 70%; }
.line.short { width: 40%; }

/* Footer Link */
.buy-footer {
    text-align: center;
    margin-top: 30px;
}

.more-homes-link {
    color: #006aff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* --- Desktop Layout --- */
@media screen and (min-width: 992px) {
    .buy-content {
        display: flex;
        gap: 30px;
    }

    .loan-card {
        flex: 0 0 320px;
    }

    .property-carousel {
        flex: 1;
        overflow: hidden;
    }

    .skeleton-card {
        min-width: 280px;
    }
}

/* --- SERVICES GRID --- */
.services {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr; /* Mobile Default */
    gap: 30px;
}
.service-card {
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.card{
  display: flex;
  justify-content: center;
  align-items: center;

}
.text{
  display: block;

}
.text p{
  text-align: start;
  margin: 0 auto;
}
@media screen and (min-width:992px) {
  .card{
    display: block;
  }
}
.service-card:hover { transform: translateY(-5px); }
.service-card img { width: 130px; height: auto; margin-bottom: 20px; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: #555; margin-bottom: 20px; }
.outline-btn {
    background: white;
    border: 1px solid #006aff;
    color: #006aff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
}
.outline-btn:hover { background: #f0f6ff; }

/* --- RESPONSIVE BREAKPOINTS (THE MAGIC) --- */

/* Tablet & Desktop */
@media (min-width: 1024px) {
    /* Swap Navbar */
    .nav-mobile { display: none; }
    .nav-desktop { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 0 40px; 
        height: 100%;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .nav-left a, .nav-right a {
        text-decoration: none;
        color: #2a2a33;
        font-size: 14px;
        margin: 0 15px;
        transition: color 0.2s;
    }
    .nav-left a:hover, .nav-right a:hover { color: #006aff; }
    
    /* Hero Adjustments */
    .hero { height: 600px; justify-content: center; }
    .hero-content { text-align: center; } /* Keeps text centered like desktop screenshot */
    .hero h1 { font-size: 60px; margin-bottom: 40px; }
    .search-box { width: 600px; margin: 0 auto; padding: 15px; }

    /* Recommendations Layout */
    .recommendations { 
        flex-direction: row; 
        justify-content: center; 
        gap: 100px; 
        padding: 100px 0;
    }
    .rec-text { text-align: left; }
    
    /* Services Grid */
    .services { grid-template-columns: repeat(3, 1fr); }
}

/* Specific Fix for Mobile Text Alignment (Matches your screenshot) */
@media (max-width: 768px) {
    .hero-content {
        text-align: left; /* Mobile aligns text left in your screenshot */
        padding-left: 10px;
    }
    .hero h1 { font-size: 38px; }
}

/* ================
LOCAL HOME
==============*/

/* Specific adjustment for longer badges in the last section */
.homes-local .badge {
    white-space: nowrap;
    max-width: 90%;
    text-overflow: ellipsis;
    overflow: hidden;
    background: #ff5a00; /* Zillow Orange-Red for Price Cuts */
}

.homes-local {
    margin-bottom: 60px; /* Extra spacing before the footer */
}






/* ======================

FOOTER SECTION
======================
*/

/* --- Global Footer Styling --- */
.about-recom {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #e8e8ef;
}

.about-recom h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-recom p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #54545a;
}

.global-footer {
    padding: 40px 20px;
    border-top: 1px solid #e8e8ef;
    background: #fff;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Footer Search Area */
.footer-search-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-logo-blue { height: 28px; }

.footer-search-bar {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.footer-search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #d1d1d5;
    border-radius: 4px;
    font-size: 15px;
}

.footer-search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2a2a33;
}

/* Categorized Nav */
.footer-nav-categories {
    display: flex;
    justify-content: center;
    border-top: 1px solid #e8e8ef;
    border-bottom: 1px solid #e8e8ef;
    padding: 20px 0;
    margin-bottom: 30px;
}

.cat-item {
    padding: 0 30px;
    border-right: 1px solid #e8e8ef;
    font-weight: 600;
    color: #006aff;
    cursor: pointer;
}

.cat-item:last-child { border-right: none; }

/* Link Cloud */
.footer-link-cloud {
    margin-bottom: 40px;
}

.cloud-row {
    margin-bottom: 12px;
}

.cloud-row a {
    text-decoration: none;
    color: #54545a;
    font-size: 13px;
    margin: 0 8px;
}

.privacy-link {
    display: inline-block;
    margin-top: 15px;
    color: #006aff;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* Legal Fine Print */
.footer-legal-text {
    border-top: 1px solid #e8e8ef;
    padding-top: 30px;
}

.footer-legal-text p {
    font-size: 11px;
    color: #54545a;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.footer-legal-text a { color: #006aff; text-decoration: none; }

.equal-housing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #a7a7ad;
    font-size: 11px;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .footer-search-row { flex-direction: column; }
    .footer-nav-categories { flex-direction: column; gap: 15px; }
    .cat-item { border-right: none; border-bottom: 1px solid #e8e8ef; padding-bottom: 10px; }
}




/* --- Bottom Branding Footer --- */
.footer-bottom-branding {
    padding: 40px 20px;
    background: #fff;
    border-top: 1px solid #e8e8ef;
    text-align: center;
}

.trademark-text p {
    font-size: 11px;
    color: #54545a;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.app-badges-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.app-badges-row img {
    height: 42px; /* Standard badge height */
    border: 1px solid #2a2a33;
    border-radius: 6px;
}

.final-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
}

.final-left, .final-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-small {
    height: 18px;
    opacity: 0.8;
}

.follow-us {
    font-size: 13px;
    color: #54545a;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    font-size: 22px;
    color: #006aff; /* Zillow Blue for social icons */
}

.copyright {
    font-size: 13px;
    color: #54545a;
}

.housing-icon {
    height: 20px;
    opacity: 0.7;
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
    .final-row {
        flex-direction: column;
        gap: 25px;
    }
}

/*==========================
      filter
 ==================== */

/* --- Global & Reset --- */
body { font-family: 'Open Sans', sans-serif;
     margin: 0; 
     background: #fff; 
     color: #2a2a33; 
    }
button { 
    cursor: pointer; 
}

/* --- Filter Bar --- */
.filter-bar-sticky {
    position: sticky; top: 0; background: #fff; z-index: 100;
    border-bottom: 1px solid #e8e8ef; padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-row { display: flex; 
    gap: 10px; 
    margin-bottom: 10px; 
}
.search-input-wrapper {
    position: relative; 
    flex: 1;
}
.search-input-wrapper input {
    width: 100%; 
    padding: 10px 35px 10px 10px;
    border: 1px solid #a7a7ad; 
    border-radius: 4px; 
    font-size: 16px;
}
.search-icon { 
    position: absolute; 
    right: 10px; 
    top: 12px; 
    color: #54545a; 
}
.btn-primary-blue {
    background: #006aff; 
    color: white; 
    border: none; 
    padding: 0 15px; 
    border-radius: 4px; 
    font-weight: 700;
}

.filter-row { 
    display: flex; 
    gap: 8px; 
    overflow-x: auto; 
    padding-bottom: 5px; }
.filter-btn {
    background: #fff; 
    border: 1px solid #d1d1d5; 
    padding: 6px 12px;
    border-radius: 4px; 
    font-size: 14px; 
    white-space: nowrap; 
    color: #006aff; 
    font-weight: 600;
}
.filter-btn:hover { 
    background: #f9f9fb; 
    border-color: #006aff; 
}
.save-search { 
    background: #006aff; 
    color: white; 
    border: none; 
}

/* --- For Sale Dropdown --- */
.dropdown-wrapper { 
    position: relative; 
}
.dropdown-content {
    display: none; 
    position: absolute; 
    top: 110%; 
    left: 0;
    background: white; 
    border: 1px solid #e8e8ef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    border-radius: 4px;
    width: 220px; 
    z-index: 200;
}
.dropdown-content.show { 
    display: block; 
}
.dropdown-item {
    display: block; 
    padding: 10px 15px; 
    color: #006aff; 
    text-decoration: none; 
    font-size: 14px;
}
.dropdown-item:hover { 
    background: #f4f4f4; 
    text-decoration: underline; 
}

/* --- Main Results Content --- */
.results-container { 
    padding: 20px; 
    max-width: 800px; 
    margin: 0 auto; 
}
.sub-text { 
    color: #54545a; 
    margin-bottom: 10px; }
.error-text { 
    margin-bottom: 30px; 
}

.search-tips h3 { 
    font-size: 12px; 
    color: #54545a; 
    margin-bottom: 15px; }
.tip-item { 
    display: flex; 
    gap: 15px; 
    margin-bottom: 25px; }
.tip-item i { 
    font-size: 20px; 
    color: #2a2a33; 
    margin-top: 2px; }
.tip-item li { 
    color: #006aff; 
    margin: 5px 0; 
}

/* --- Floating Map Button --- */
.floating-map-toggle {
    position: fixed; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%);
    background: #fff; 
    border-radius: 20px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex; 
    padding: 8px 16px; 
    z-index: 90;
}
.floating-map-toggle button { 
    border: none; 
    background: none; 
    font-weight: 600; 
    color: #006aff; 
    padding: 0 10px; 
}
.divider { 
    width: 1px; 
    background: #ddd;
     height: 20px; 
    }

/* --- Modal Styles (Filters) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1000;
    display: flex; justify-content: center; align-items: flex-end; /* Mobile: slide from bottom */
}
.modal-container {
    background: #fff; width: 100%; height: 90vh; /* Takes up most of screen */
    border-radius: 12px 12px 0 0; display: flex; flex-direction: column;
    max-width: 600px; /* Tablet limit */
}
/* Desktop tweak */
@media(min-width: 768px) {
    .modal-overlay { align-items: center; }
    .modal-container { height: 80vh; border-radius: 8px; }
}

.modal-header {
    padding: 15px; border-bottom: 1px solid #e8e8ef;
    display: flex; justify-content: space-between; align-items: center;
}
.close-btn { background: none; border: none; font-size: 24px; }

.modal-body { flex: 1; overflow-y: auto; padding: 20px; }

/* Filter Sections */
.filter-section { margin-bottom: 25px; border-bottom: 1px solid #f1f1f4; padding-bottom: 20px; }
.filter-title { font-weight: 700; margin-bottom: 15px; display: block; }
.checkbox-row { display: flex; align-items: center; margin-bottom: 12px; }
.checkbox-row input { width: 20px; height: 20px; margin-right: 10px; accent-color: #006aff; }
.dropdown-pair { display: flex; gap: 10px; align-items: center; }
.dropdown-pair select, .dropdown-pair input {
    flex: 1; padding: 10px; border: 1px solid #d1d1d5; border-radius: 4px;
}

.modal-footer {
    padding: 15px; border-top: 1px solid #e8e8ef;
    display: flex; justify-content: space-between; align-items: center;
}
.apply-btn {
    background: #006aff; color: white; border: none; padding: 12px 30px;
    border-radius: 4px; font-weight: 700;
}
.reset-link { background: none; border: none; color: #006aff; font-weight: 600; }


/* second option */
/* --- Split View Layout --- */
.split-view-container {
    display: flex;
    height: calc(100vh - 130px); /* Subtracts header height */
    position: relative;
    overflow: hidden;
}

/* --- Left Side: Listings --- */
.listings-pane {
    width: 60%; /* Desktop width */
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    transition: width 0.3s;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 60px; /* Space for floating button */
}

/* Sample Card Styling */
.listing-card { border: 1px solid #e8e8ef; border-radius: 8px; overflow: hidden; }
.listing-card img { width: 100%; height: 180px; object-fit: cover; }
.card-info { padding: 10px; }
.price { font-size: 22px; font-weight: 700; color: #2a2a33; }

/* --- Right Side: Map --- */
.map-pane {
    width: 40%;
    height: 100%;
    position: relative;
}

#zillowMap {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* --- Custom Marker (The Price Tag) --- */
.price-marker {
    background-color: #fff;
    border: 1px solid #006aff; /* Zillow Blue border */
    color: #006aff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 12px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}

.price-marker:hover, .price-marker.active {
    background-color: #006aff;
    color: white;
    transform: scale(1.1);
    z-index: 1000 !important;
}

/* --- Mobile Responsiveness --- */
.close-map-btn { display: none; }

@media (max-width: 768px) {
    .split-view-container { display: block; }
    
    /* Initially, List is full screen, Map is hidden */
    .listings-pane { width: 100%; height: 100%; }
    
    .map-pane {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        z-index: 2000;
        transform: translateY(100%); /* Hidden off-screen */
        transition: transform 0.3s ease-in-out;
        background: white;
    }

    /* When Map is Active */
    .map-pane.show-mobile {
        transform: translateY(0); /* Slide up */
    }

    /* Floating Toggle Button */
    .floating-map-toggle {
        display: flex; /* Visible on mobile */
    }

    /* Button to close map on mobile */
    .close-map-btn {
        display: block;
        position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
        background: #006aff; color: white; padding: 12px 24px;
        border: none; border-radius: 20px; font-weight: 700; z-index: 3000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
}
/* ==================
sigin in logic
=========================
/* Navbar auth area */
.nav-auth-container { display: flex; align-items: center; }

/* Signed-out link */
.nav-signin{
  color:#2563eb;
  font-weight:600;
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  transition:.2s ease;
}
.nav-signin:hover{ background:#eff6ff; }

/* Signed-in user menu */
.nav-user{ position:relative; display:flex; align-items:center; }

.nav-user__btn{
  border:none;
  background:transparent;
  padding:0;
  cursor:pointer;
}

.nav-user__img,
.nav-user__initials{
  width:40px;
  height:40px;
  border-radius:999px;
  display:grid;
  place-items:center;
}

.nav-user__img{
  object-fit:cover;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

.nav-user__initials{
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color:white;
  font-weight:700;
  letter-spacing:.5px;
  box-shadow:0 6px 18px rgba(37,99,235,.28);
}

/* Dropdown */
.nav-user__menu{
  position:absolute;
  right:0;
  top:52px;
  width:240px;
  background:white;
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(2,6,23,.18);
  padding:10px;
  opacity:0;
  transform: translateY(-6px);
  pointer-events:none;
  transition:.18s ease;
}

.nav-user__menu.open{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.nav-user__meta{ padding:10px; }
.nav-user__name{ font-weight:700; color:#0f172a; }
.nav-user__email{ font-size:13px; color:#64748b; margin-top:2px; }

.nav-user__logout{
  width:100%;
  border:none;
  background:#f1f5f9;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  transition:.2s ease;
}
.nav-user__logout:hover{ background:#e2e8f0; }


/* Professional Badge in Navbar */
.pro-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #d93c00;
  color: white;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 4px;
  border-radius: 3px;
  border: 2px solid white;
}

.menu-pro-badge {
  background: #d93c00;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
}

.nav-user__type {
  font-size: 12px;
  color: #006aff;
  margin-top: 4px;
  text-transform: capitalize;
}

.nav-user__link {
  display: block;
  padding: 10px;
  color: #2a2a33;
  text-decoration: none;
  font-size: 14px;
  border-top: 1px solid #f1f1f4;
}

.nav-user__link:hover {
  background: #f9f9fb;
}

.nav-user__btn {
  position: relative;
}

/* User menu divider */
.nav-user__divider {
  height: 1px;
  background: #e8e8ef;
  margin: 8px 0;
}

/* User menu links with icons */
.nav-user__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #2a2a33;
  text-decoration: none;
  font-size: 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.nav-user__link:hover {
  background: #f4f4f4;
}

.nav-user__link i {
  color: #006aff;
  width: 18px;
}

/* Logout button with icon */
.nav-user__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #d32f2f;
  transition: .2s ease;
}

.nav-user__logout:hover {
  background: #ffebee;
}

.nav-user__logout i {
  width: 18px;
}