/* TerraHills Eco Real Estate Premium Stylesheet */
:root {
    --bg-dark: 150 12% 5.9%;
    --bg-card: 150 10% 8% / 0.75;
    --primary-emerald: 154 50% 45%;
    --primary-emerald-hover: 154 60% 38%;
    --accent-sand: 38 30% 62%;
    --accent-sand-glow: 38 40% 70%;
    --border: 150 5% 15%;
    --border-hover: 150 5% 25%;
    --text-main: 0 0% 98%;
    --text-muted: 150 4% 60%;
    
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-main));
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

.eco-accent {
    color: hsl(var(--primary-emerald));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-full {
    width: 100%;
    padding: 0.85rem;
}

.btn-emerald {
    background-color: hsl(var(--primary-emerald));
    color: white;
    box-shadow: 0 4px 15px hsla(var(--primary-emerald), 0.25);
}

.btn-emerald:hover {
    background-color: hsl(var(--primary-emerald-hover));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px hsla(var(--primary-emerald), 0.35);
}

.btn-secondary {
    background-color: hsla(150, 5%, 15%, 0.4);
    color: hsl(var(--text-main));
    border-color: hsl(var(--border));
}

.btn-secondary:hover {
    border-color: hsl(var(--border-hover));
    background-color: hsla(150, 5%, 15%, 0.6);
}

/* Header & Sticky Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px;
    z-index: 100;
    background-color: hsla(var(--bg-dark), 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--text-main));
    text-decoration: none;
}

.logo-icon {
    color: hsl(var(--primary-emerald));
    width: 26px;
    height: 26px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: hsl(var(--text-muted));
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: hsl(var(--text-main));
}

.fav-trigger {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: hsl(var(--text-main));
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.fav-trigger:hover {
    color: hsl(var(--primary-emerald));
}

.fav-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: hsl(var(--primary-emerald));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    padding-top: 150px;
    padding-bottom: 90px;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), transparent);
    position: relative;
}

.hero-container {
    text-align: center;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: hsl(var(--accent-sand));
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-section h1 {
    font-size: 4rem;
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

.hero-desc {
    color: hsl(var(--text-muted));
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search and Filters bar overlapping hero */
.search-bar-container {
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.search-filter-box {
    background-color: hsla(150, 10%, 8%, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid hsl(var(--border));
    padding: 1.5rem;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 0.6fr;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-group label i {
    width: 14px;
    height: 14px;
    color: hsl(var(--accent-sand));
}

.filter-group input, .filter-group select {
    background-color: #121513;
    border: 1px solid hsl(var(--border));
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    color: hsl(var(--text-main));
    font-family: var(--font-sans);
    font-size: 0.875rem;
    transition: var(--transition);
}

.filter-group input:focus, .filter-group select:focus {
    outline: none;
    border-color: hsl(var(--primary-emerald));
}

.search-btn {
    margin-top: 1.25rem;
    padding: 0.75rem;
}

/* Listings & Map Double Column Layout */
.listings-section {
    padding: 60px 0 100px 0;
}

.listings-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3rem;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.75rem;
}

.listings-header h2 {
    font-size: 1.75rem;
}

.listings-results {
    font-size: 0.9rem;
    color: hsl(var(--text-muted));
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Listing Property Card styling */
.listing-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--border-hover));
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.listing-card.map-selected {
    border-color: hsl(var(--primary-emerald));
    box-shadow: 0 0 15px hsla(var(--primary-emerald), 0.2);
}

.listing-img-box {
    height: 180px;
    background-color: #121513;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-visual-placeholder {
    width: 140px;
    height: 70px;
    border: 1.5px solid rgba(255,255,255,0.06);
    border-bottom: none;
    position: relative;
    transform: translateY(15px);
}

.listing-visual-placeholder::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -10px;
    width: 156px;
    height: 40px;
    border-bottom: 1.5px solid hsl(var(--accent-sand));
    transform: skewY(15deg);
    transform-origin: left bottom;
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: hsl(var(--primary-emerald));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.listing-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.listing-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: hsl(var(--accent-sand));
}

.listing-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.listing-location {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-location i {
    width: 14px;
    height: 14px;
}

.listing-specs {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    border-top: 1px solid hsl(var(--border));
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.listing-specs span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.listing-specs i {
    width: 14px;
    height: 14px;
}

.listing-footer {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.btn-fav {
    background-color: hsla(150, 5%, 15%, 0.4);
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-muted));
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-fav:hover {
    color: #f43f5e;
    background-color: hsla(346, 77%, 49%, 0.1);
}

.btn-fav.active {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.btn-fav i {
    width: 18px;
    height: 18px;
}

.btn-fav.active i {
    fill: currentColor;
}

.btn-book-tour {
    flex-grow: 1;
    padding: 0.5rem;
}

/* Map Column Sticky sidebar */
.map-column {
    position: sticky;
    top: 100px;
    height: calc(100vh - 130px);
}

.map-wrapper {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-header {
    background-color: #0d0f0e;
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--accent-sand));
}

.map-header i {
    width: 16px;
    height: 16px;
}

.map-canvas {
    flex-grow: 1;
    position: relative;
    background-color: #0b0c0b;
}

.map-svg-background {
    width: 100%;
    height: 100%;
}

.map-pins-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: hsl(var(--accent-sand));
    border: 2px solid white;
    transition: var(--transition);
}

.pin-ring {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid hsl(var(--accent-sand));
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.map-pin:hover .pin-dot, .map-pin.active .pin-dot {
    background-color: hsl(var(--primary-emerald));
    transform: scale(1.2);
}

.map-pin:hover .pin-ring, .map-pin.active .pin-ring {
    opacity: 0.6;
    transform: scale(1);
    border-color: hsl(var(--primary-emerald));
    animation: pinPulse 2s infinite;
}

@keyframes pinPulse {
    0% { transform: scale(0.6); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Map Info Card popup sliding from bottom */
.map-popup-card {
    position: absolute;
    bottom: -150px;
    left: 1rem;
    right: 1rem;
    background-color: #0d0f0e;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    pointer-events: none;
}

.map-popup-card.active {
    bottom: 1rem;
    pointer-events: auto;
}

.popup-img-thumb {
    height: 60px;
    background-color: #121513;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-visual-line {
    width: 40px;
    height: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
}

.popup-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.popup-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: hsl(var(--accent-sand));
}

/* About Section Eco Stats */
.about-section {
    padding: 100px 0;
    border-top: 1px solid hsl(var(--border));
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: hsl(var(--text-muted));
    font-size: 1.1rem;
}

.stats-row {
    display: flex;
    gap: 2.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: hsl(var(--primary-emerald));
}

.stat-label {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
    text-transform: uppercase;
}

/* Favorites Drawer */
.fav-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.fav-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fav-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background-color: #0b0d0c;
    border-left: 1px solid hsl(var(--border));
    z-index: 160;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.fav-drawer.active {
    right: 0;
}

.fav-header {
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border));
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fav-close {
    background: none;
    border: none;
    color: hsl(var(--text-main));
    cursor: pointer;
}

.fav-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.fav-item-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.fav-item-img {
    width: 50px;
    height: 50px;
    background-color: #121513;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-item-info {
    flex-grow: 1;
}

.fav-item-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
}

.fav-item-info span {
    font-size: 0.8rem;
    color: hsl(var(--accent-sand));
}

.btn-remove-fav {
    background: none;
    border: none;
    color: hsl(var(--text-muted));
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-fav:hover {
    color: #ef4444;
}

/* Tour Booking Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #0b0d0c;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    width: 550px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 3.5rem 3rem 3rem 3rem;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--text-muted));
}

.modal-close i {
    width: 18px;
    height: 18px;
}

.tour-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: hsl(var(--text-muted));
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.flex-1 { flex: 1; }

.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.form-group input, .form-group select {
    background-color: #121513;
    border: 1px solid hsl(var(--border));
    border-radius: 4px;
    padding: 0.65rem 0.75rem;
    color: hsl(var(--text-main));
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: hsl(var(--primary-emerald));
}

/* Booking Success Receipt Page overlay */
.tour-success-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0b0d0c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 5;
}

.tour-success-view.active {
    opacity: 1;
    pointer-events: auto;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: hsl(var(--primary-emerald));
    margin-bottom: 1.5rem;
}

.tour-success-view h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.booking-receipt-box {
    background-color: #121513;
    border: 1px solid hsl(var(--border));
    border-radius: 4px;
    padding: 1.25rem;
    width: 100%;
    max-width: 360px;
    margin: 2rem 0;
    text-align: left;
}

.booking-receipt-box p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Footer Section */
.footer {
    border-top: 1px solid hsl(var(--border));
    background-color: #080a09;
    padding: 4.5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand p {
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
    max-width: 260px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col h4 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: hsl(var(--accent-sand));
}

.footer-links-col a {
    color: hsl(var(--text-muted));
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-col a:hover {
    color: hsl(var(--primary-emerald));
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid hsl(var(--border));
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
}

/* AI Valuation Estimator Card Styles */
.ai-valuation-card {
    background-color: hsl(var(--bg-card));
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 1.75rem;
    margin-top: 3rem;
    transition: var(--transition);
}

.ai-valuation-card:hover {
    border-color: hsl(var(--border-hover));
}

.ai-val-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: hsl(var(--accent-sand));
    margin-bottom: 0.5rem;
}

.ai-val-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.ai-val-icon {
    width: 22px;
    height: 22px;
    color: hsl(var(--primary-emerald));
}

.ai-val-subtitle {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
}

.ai-val-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.val-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.val-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.val-form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.val-form-group select {
    background-color: #121513;
    border: 1px solid hsl(var(--border));
    padding: 0.65rem;
    border-radius: 4px;
    color: hsl(var(--text-main));
    font-size: 0.85rem;
}

.val-form-group input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: hsl(var(--border));
    border-radius: 3px;
    outline: none;
    margin: 0.75rem 0;
}

.val-form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: hsl(var(--primary-emerald));
    cursor: pointer;
    transition: var(--transition);
}

.val-form-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.val-checkboxes-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.val-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.val-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    cursor: pointer;
}

.val-checkbox-label input[type="checkbox"] {
    accent-color: hsl(var(--primary-emerald));
    width: 14px;
    height: 14px;
}

.val-btn-calculate {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
    font-size: 0.85rem;
}

.ai-val-result {
    animation: valFadeIn 0.5s ease-out;
}

.val-result-divider {
    height: 1px;
    background-color: hsl(var(--border));
    margin: 1.5rem 0;
}

.val-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.val-result-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.val-result-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
}

.val-result-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: hsl(var(--accent-sand));
}

.val-result-value.green-text {
    color: #10b981;
}

.val-result-confidence-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.confidence-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.confidence-bar {
    height: 6px;
    background-color: hsl(var(--border));
    border-radius: 3px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(to right, #10b981, #059669);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes valFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .val-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Responsive Real Estate Views */
@media (max-width: 1024px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }
    
    .map-column {
        display: none; /* Hide map sidebar on smaller sizes, prioritizing directory flow */
    }
    
    .search-filter-box {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .search-btn {
        grid-column: 1 / -1;
        margin-top: 0.5rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .stats-row {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: auto;
        padding: 1rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section {
        padding-top: 200px;
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .search-filter-box {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}
