@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600&family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

/* ============================================================
   TeedinCondo - Luxury Emerald Green & Earth Tone Real Estate CSS
   ============================================================ */

:root {
    --primary: #0d3824;          /* Deep forest emerald green */
    --primary-dark: #072317;     /* Deepest emerald spruce */
    --primary-light: #164e33;    /* Rich green */
    --secondary: #c59b27;        /* Bronze-gold */
    --secondary-hover: #a8811d;  /* Deep bronze-gold */
    --accent: #0d3824;           /* Brand forest emerald */
    --accent-hover: #164e33;
    --bronze-gold: #c59b27;
    --gold-light: #e5c365;
    --gold-accent: #dfb141;
    --stone-brown: #3e2e23;      /* Dark brown textured stone */
    --stone-brown-hover: #2e2118;
    --earth-warm: #f7f5f0;       /* Warm earth tone background */
    --earth-sand: #eee9dc;
    --earth-dark: #1b261e;
    --line-green: #06C755;
    --line-green-hover: #05a847;
    --danger: #ef4444;
    --success: #10b981;
    --sale-badge: #b91c1c;
    --rent-badge: #1d4ed8;

    --bg-page: #f8f7f4;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f3f0ea;
    --bg-muted: #e4dfd5;

    --text-main: #1c2620;        /* Clean dark slate */
    --text-muted: #5e6d63;
    --text-light: #8a988f;
    --text-inverse: #ffffff;

    --border-color: #e4dfd5;
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 18px;
    --border-radius-full: 9999px;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(27, 38, 30, 0.07);
    --shadow-md: 0 8px 24px rgba(27, 38, 30, 0.10);
    --shadow-lg: 0 16px 36px rgba(27, 38, 30, 0.14);

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-heading: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max: 1240px;
    --header-height: 76px;
}

/* ------------------------------------------------------------
   Reset & Base Styles
   ------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
}

body.no-scroll {
    overflow: hidden;
}

main {
    flex: 1 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* ------------------------------------------------------------
   Layout & Container
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3.5vw, 24px);
    padding-right: clamp(16px, 3.5vw, 24px);
    box-sizing: border-box;
}

.section {
    padding: clamp(44px, 6vw, 68px) 0;
}

.section-alt {
    background-color: var(--bg-surface-alt);
}

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

.section-header-spaced {
    margin-top: 64px;
}

.section-title {
    font-size: 1.95rem;
    color: var(--primary);
    position: relative;
    padding-left: 18px;
    letter-spacing: -0.01em;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: linear-gradient(to bottom, var(--secondary), var(--accent));
    border-radius: 4px;
}

.section-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 400;
}

.section-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(37, 99, 235, 0.06);
    transition: all 0.2s ease;
}

.section-link:hover {
    color: var(--accent-hover);
    background-color: rgba(37, 99, 235, 0.12);
    transform: translateX(3px);
}

/* ------------------------------------------------------------
   Top Bar
   ------------------------------------------------------------ */
.top-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.top-bar-contact a:hover {
    color: var(--text-inverse);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ------------------------------------------------------------
   Main Navbar
   ------------------------------------------------------------ */
.site-header {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.brand-logo .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0d3824, #164e33);
    color: #e5c365;
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(13, 56, 36, 0.25);
}

.brand-logo .brand-icon svg {
    width: 20px;
    height: 20px;
    color: #e5c365;
    stroke: currentColor;
    display: block;
}

.brand-logo .brand-accent {
    color: var(--secondary);
}

.brand-logo .brand-tagline {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 20px);
    margin: 0 auto;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link .nav-icon {
    width: 18px;
    height: 18px;
    color: #166534;
    stroke: currentColor;
    flex-shrink: 0;
    display: inline-block;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary);
    background-color: rgba(13, 56, 36, 0.05);
}

.nav-link:hover .nav-icon {
    color: #0d3824;
    transform: translateY(-1px) scale(1.1);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background-color: rgba(13, 56, 36, 0.07);
}

.nav-link.active .nav-icon {
    color: #0d3824;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 12px;
    right: 12px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px 3px 0 0;
}

.nav-actions {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.2);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--primary-dark);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--text-inverse);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--text-inverse);
}

.btn-line {
    background-color: var(--line-green);
    color: white;
}

.btn-line:hover {
    background-color: var(--line-green-hover);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(37, 99, 235, 0.04);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
    border-radius: var(--border-radius);
}

.btn-block {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.2s ease;
}

.nav-toggle:hover {
    background-color: var(--bg-surface-alt);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 35, 23, 0.65);
    z-index: 1050;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------
   Hero Section - Translucent 20% Green Background for Banner Contrast
   ------------------------------------------------------------ */
.hero-section {
    position: relative;
    background-color: rgba(13, 56, 36, 0.2);
    color: var(--text-main);
    padding: clamp(48px, 7vw, 84px) 0 clamp(54px, 8vw, 96px) 0;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
}

.hero-tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(13, 56, 36, 0.10);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(13, 56, 36, 0.22);
    padding: 6px clamp(12px, 3vw, 20px);
    border-radius: var(--border-radius-full);
    font-size: clamp(0.78rem, 2vw, 0.9rem);
    font-weight: 600;
    margin-bottom: clamp(16px, 3vw, 24px);
    color: #0d3824;
    box-shadow: 0 2px 8px rgba(13, 56, 36, 0.08);
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.hero-title-gold {
    font-size: clamp(1.85rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.22;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    color: #072317;
    background: linear-gradient(135deg, #072317 0%, #0d3824 50%, #164e33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.hero-desc {
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    color: #1f3b2d;
    margin-bottom: clamp(22px, 4vw, 34px);
    font-weight: 400;
    line-height: 1.75;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark Brown Textured Stone CTA Button */
.btn-stone-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(145deg, #443226 0%, #2e2118 50%, #1f1610 100%);
    color: #ffd978;
    border: 1px solid rgba(212, 175, 55, 0.65);
    border-radius: var(--border-radius);
    padding: clamp(12px, 2.5vw, 16px) clamp(22px, 4.5vw, 42px);
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    max-width: 100%;
    text-align: center;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.45),
        inset 0 1px 1px rgba(255, 255, 255, 0.2),
        inset 0 -1px 2px rgba(0, 0, 0, 0.6);
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-stone-cta:hover {
    background: linear-gradient(145deg, #533d2e 0%, #3a2a1f 50%, #261b14 100%);
    color: #ffffff;
    border-color: #ffd978;
    transform: translateY(-3px);
    box-shadow: 
        0 14px 32px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(212, 175, 55, 0.35);
}

/* ------------------------------------------------------------
   Hero Banner Slider (Scroll-Snap Pure Image Ads - 2 Land, 2 Condo)
   ------------------------------------------------------------ */
.hero-banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    gap: 0;
    width: 100%;
    max-width: 960px;
    margin: clamp(28px, 4vw, 40px) auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    scroll-behavior: smooth;
    background-color: rgba(13, 56, 36, 0.06);
}

.hero-banner-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.hero-banner-img {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Search Box Container */
.hero-search-container {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    padding: 10px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-search-tabs {
    display: flex;
    gap: 6px;
    padding: 6px 8px 12px 8px;
    border-bottom: 1px solid var(--border-color);
}

.hero-tab-btn {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 9px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.hero-tab-btn:hover {
    color: var(--primary);
    background-color: var(--bg-surface-alt);
}

.hero-tab-btn.active {
    background: linear-gradient(135deg, var(--secondary), #d97706);
    color: var(--primary-dark);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.hero-tab-btn[data-type="condo"].active {
    background: var(--primary);
    color: white;
}

.hero-tab-btn[data-type="all"].active {
    background: var(--primary-light);
    color: white;
}

.hero-search-form {
    padding: 16px 10px 10px 10px;
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 1.2fr 1.2fr auto;
    gap: 12px;
    align-items: center;
}

.form-group-filter {
    position: relative;
}

.form-group-filter label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 36px;
    appearance: none;
}

.hero-search-submit {
    height: 46px;
    margin-top: 19px;
    padding: 0 24px;
    font-weight: 600;
}

/* Quick Location Tags */
.quick-tags-wrap {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.88rem;
}

.quick-tags-label {
    color: var(--text-muted);
    font-weight: 500;
}

.quick-tag-pill {
    background-color: #ffffff;
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
}

.quick-tag-pill:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
}

/* ------------------------------------------------------------
   Minimalist Property Exploration Strip (Replaces Bulky Search Card)
   ------------------------------------------------------------ */
.quick-nav-section {
    background-color: var(--earth-warm);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: clamp(28px, 4vw, 40px) 0;
}

.quick-nav-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(27, 38, 30, 0.06);
    padding: clamp(20px, 3.5vw, 26px) clamp(20px, 4vw, 32px);
}

.quick-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.quick-nav-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.quick-nav-title {
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.35;
    margin: 0;
}

.quick-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-map-explore {
    background: linear-gradient(135deg, #0d3824 0%, #164e33 100%);
    color: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.45);
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 14px rgba(13, 56, 36, 0.2);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-map-explore:hover {
    background: linear-gradient(135deg, #164e33 0%, #1f6b46 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 56, 36, 0.28);
}

.btn-advanced-explore {
    background-color: #ffffff;
    color: var(--text-main);
    border: 1.5px solid #dcd7cc;
    padding: 12px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius);
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-advanced-explore:hover {
    background-color: var(--bg-surface-alt);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-nav-card .quick-tags-wrap {
    margin-top: 16px;
    margin-bottom: 0;
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .quick-nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .quick-nav-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .btn-map-explore,
    .btn-advanced-explore {
        flex: 1 1 calc(50% - 6px);
        min-width: 180px;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .btn-map-explore,
    .btn-advanced-explore {
        flex: 1 1 100%;
        width: 100%;
    }
}

/* ------------------------------------------------------------
   Property Cards Grid & Layout (4 Columns for 8-card Grids)
   ------------------------------------------------------------ */
.property-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    width: 100%;
}

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

.property-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.property-card-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.property-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.property-card:hover .property-card-thumb img {
    transform: scale(1.06);
}

.property-badge-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.badge-sale {
    background-color: var(--sale-badge);
}

.badge-rent {
    background-color: var(--rent-badge);
}

.badge-both {
    background: linear-gradient(135deg, var(--sale-badge), var(--rent-badge));
}

.badge-condo {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(13, 56, 36, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.badge-land {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(197, 155, 39, 0.95);
    color: #072317;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge-deed {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.btn-favorite,
.btn-fav-static {
    display: none !important;
}

.property-card-body {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.property-price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
}

.property-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Make entire property card clickable */
.property-card {
    position: relative;
    cursor: pointer;
}

.property-title a::after,
.property-card-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.property-specs-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.property-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.property-spec-item strong {
    color: var(--text-main);
}

.property-card-footer {
    display: none !important;
}

/* ------------------------------------------------------------
   Land Featured Cards Dedicated UI
   ------------------------------------------------------------ */
.property-card-land {
    border-color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.property-card-land:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);
}

.land-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.land-price-total {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.price-per-wah-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    background-color: #fffbeb;
    color: #92400e;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid #fde68a;
}

.land-specs-box {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    margin: 10px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.land-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.land-metric-row strong {
    color: var(--text-main);
}

.land-specs-grid-3 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 6px;
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    margin: 10px 0 12px 0;
}

.land-spec-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.land-spec-col-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.land-spec-col-val {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
}

/* ------------------------------------------------------------
   Condo Highlights Compact UI
   ------------------------------------------------------------ */
.condo-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.property-card-compact {
    border-radius: var(--border-radius-sm);
}

.property-card-compact .property-card-thumb {
    height: 200px;
    background-color: #f3f4f6;
}

.property-card-compact .property-card-body {
    padding: 14px;
}

.property-card-compact .property-price {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.property-card-compact .property-title {
    font-size: 0.98rem;
    margin-bottom: 6px;
}

.condo-all-banner {
    background: linear-gradient(135deg, #072317 0%, #0d3824 50%, #164e33 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: white;
    border-radius: var(--border-radius);
    padding: 26px 32px;
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.condo-all-banner-text h3 {
    color: #ffd978;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.condo-all-banner-text p {
    color: #d1fae5;
    font-size: 0.92rem;
}

/* ------------------------------------------------------------
   Listing Filter Bar (condo.php / teedin.php / search.php)
   ------------------------------------------------------------ */
.filter-bar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--secondary);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px -2px rgba(13, 56, 36, 0.06);
    margin-bottom: 28px;
    position: relative;
}

.filter-bar-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    width: 100%;
}

.filter-bar-grid .form-group-filter {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

.filter-bar-grid .form-group-filter label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.filter-bar-grid .form-control,
.filter-bar-grid select.form-control,
.filter-bar-grid input.form-control {
    width: 100%;
    height: 44px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-bar-grid .form-control:hover,
.filter-bar-grid select.form-control:hover,
.filter-bar-grid input.form-control:hover {
    border-color: #94a3b8;
}

.filter-bar-grid .form-control:focus,
.filter-bar-grid select.form-control:focus,
.filter-bar-grid input.form-control:focus {
    outline: none;
    border-color: #0d3824;
    box-shadow: 0 0 0 3px rgba(13, 56, 36, 0.12);
}

.filter-submit-btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    background: #0d3824;
    background: linear-gradient(135deg, #0d3824 0%, #164e33 100%);
    border: 1px solid #0d3824;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(13, 56, 36, 0.15);
    transition: all 0.2s ease;
    margin: 0;
}

.filter-submit-btn:hover {
    background: #092618;
    border-color: #092618;
    box-shadow: 0 4px 12px rgba(13, 56, 36, 0.25);
}

/* Strict SVG sizing: 24px x 24px and never expand */
.filter-submit-btn svg,
svg.filter-icon-svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex-shrink: 0 !important;
    stroke: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.filter-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.filter-results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.filter-results-count strong {
    color: var(--primary);
    font-weight: 700;
}

.sort-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sort-select-wrap select {
    padding: 6px 28px 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.88rem;
    background-color: var(--bg-surface);
}

/* Land Zoning Color Badges */
.zone-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}
.zone-red { background-color: #ef4444; } /* พาณิชยกรรม */
.zone-orange { background-color: #f97316; } /* ที่อยู่อาศัยหนาแน่นมาก */
.zone-yellow { background-color: #eab308; color: #1e293b; } /* ที่อยู่อาศัยหนาแน่นน้อย */
.zone-purple { background-color: #a855f7; } /* อุตสาหกรรม */
.zone-green { background-color: #22c55e; } /* เกษตรกรรม */

/* ------------------------------------------------------------
   Skeleton Loading State UI (Production Grade Shimmer)
   ------------------------------------------------------------ */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-loading {
    background: linear-gradient(90deg, #ece9e2 25%, #f7f5f0 50%, #ece9e2 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: var(--border-radius-sm);
}

.skeleton-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.skeleton-thumb {
    width: 100%;
    height: 220px;
    position: relative;
}

.skeleton-thumb.condo-thumb {
    height: 200px;
}

.skeleton-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 48px;
    height: 24px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.6);
}

.skeleton-badge.right {
    left: auto;
    right: 12px;
    width: 60px;
}

.skeleton-body {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    width: 100%;
}

.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-30 { width: 30%; }
.skeleton-line.h-title { height: 22px; }
.skeleton-line.h-price { height: 26px; }

.skeleton-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.skeleton-card-footer {
    padding: 12px 16px;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Article Skeleton */
.skeleton-article-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skeleton-article-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
}

/* ------------------------------------------------------------
   Empty & Error State UI
   ------------------------------------------------------------ */
.state-box {
    grid-column: 1 / -1;
    background-color: var(--bg-surface);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px 24px;
    text-align: center;
    max-width: 620px;
    margin: 20px auto;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.3s ease-in;
}

.state-box-icon {
    font-size: 3rem;
    margin-bottom: 14px;
    line-height: 1;
}

.state-box-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.state-box-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.state-empty .state-box-icon {
    filter: grayscale(20%);
}

.state-error {
    border-color: rgba(239, 68, 68, 0.4);
    background-color: #fffaf9;
}

.state-error .state-box-title {
    color: #b91c1c;
}

.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-retry:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

/* ------------------------------------------------------------
   Pagination
   ------------------------------------------------------------ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Property Detail Page Layout
   ------------------------------------------------------------ */
.detail-header-wrap {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--text-light);
}

.detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.detail-main-title {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.3;
}

.detail-price-box {
    text-align: right;
}

.detail-price-val {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.detail-price-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.detail-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Gallery */
.gallery-container {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.gallery-main-viewport {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #000;
    position: relative;
    overflow: hidden;
}

.gallery-main-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 10px;
    background-color: var(--bg-surface-alt);
    border-top: 1px solid var(--border-color);
}

.gallery-thumb {
    aspect-ratio: 16 / 10;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Detail Card Boxes */
.detail-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.detail-card-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.specs-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.spec-box {
    background-color: var(--bg-surface-alt);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}

.spec-box-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.spec-box-val {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.facility-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: var(--bg-surface-alt);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    color: var(--text-main);
}

.facility-icon {
    color: var(--success);
    font-weight: bold;
}

/* ------------------------------------------------------------
   Lead Registration Form (detail.php & other components)
   Strictly paired with assets/js/lead-sender.js
   ------------------------------------------------------------ */
.lead-form-card {
    background-color: var(--bg-surface);
    border: 2px solid #e0e7ff;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.lead-card-centered {
    position: static;
    max-width: 860px;
    margin: 0 auto;
    border: 2px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fafaf9 100%);
    padding: 40px;
}

.lead-form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lead-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.lead-form-title {
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.lead-form-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lead-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lead-form label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.lead-form label span.required {
    color: var(--danger);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background-color: var(--bg-surface);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.lead-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Alert States for Lead Form */
.lead-form-alert {
    display: none;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.lead-form-alert.alert-success {
    display: block;
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.lead-form-alert.alert-error {
    display: block;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Spinner */
.spinner-border {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: text-bottom;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Agent Quick Contact Box */
.agent-contact-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.agent-profile-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.agent-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.agent-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
}

.agent-badge {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.agent-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ------------------------------------------------------------
   Services & Value Proposition (Section 3: firstpage.php & about.php)
   ------------------------------------------------------------ */
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 28px 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    border-color: var(--secondary);
}

.service-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(37, 99, 235, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.service-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ------------------------------------------------------------
   Articles / Blog Components (article.php & article-detail.php)
   ------------------------------------------------------------ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

.article-card {
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.article-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-surface-alt);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(15, 41, 66, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.article-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-link {
    margin-top: auto;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-detail-content {
    max-width: 820px;
    margin: 0 auto;
    background-color: var(--bg-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.article-detail-content h2 {
    font-size: 1.6rem;
    margin: 32px 0 16px 0;
    color: var(--primary);
}

.article-detail-content h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px 0;
    color: var(--primary-light);
}

.article-detail-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 20px;
}

.article-callout {
    background-color: #eff6ff;
    border-left: 4px solid var(--accent);
    padding: 18px 24px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    margin: 24px 0;
}

/* ------------------------------------------------------------
   Map-Based Search Page (map.php)
   ------------------------------------------------------------ */
.map-page-layout {
    display: flex;
    height: calc(100vh - var(--header-height));
    position: relative;
    overflow: hidden;
}

.map-sidebar {
    width: 440px;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.map-viewport {
    flex: 1;
    position: relative;
    background-color: #e5e7eb;
    overflow: hidden;
}

.map-canvas-mock {
    width: 100%;
    height: 100%;
    background-color: #dbeafe;
    position: relative;
    background-image: 
        radial-gradient(#93c5fd 1.5px, transparent 1.5px),
        radial-gradient(#bfdbfe 1.5px, #dbeafe 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    overflow: hidden;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 20;
    transition: transform 0.2s ease, z-index 0.2s ease;
}

.map-pin:hover, .map-pin.active, .map-pin.hovered {
    transform: translate(-50%, -115%) scale(1.15);
    z-index: 30;
}

.map-pin-badge {
    background-color: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    white-space: nowrap;
    border: 2px solid white;
    position: relative;
}

.map-pin-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary);
}

.map-pin.pin-land .map-pin-badge {
    background-color: var(--secondary);
    color: var(--primary-dark);
}

.map-pin.pin-land .map-pin-badge::after {
    border-top-color: var(--secondary);
}

/* Pin Coordinates */
.pin-c1 { top: 55%; left: 52%; }
.pin-c2 { top: 38%; left: 48%; }
.pin-c3 { top: 48%; left: 60%; }
.pin-c4 { top: 25%; left: 35%; }
.pin-l1 { top: 75%; left: 78%; }
.pin-l4 { top: 35%; left: 18%; }

.map-card-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    background-color: var(--bg-surface);
    transition: all 0.2s ease;
    cursor: pointer;
}

.map-card-item:hover, .map-card-item.highlighted {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
    background-color: #f0f7ff;
}

/* ------------------------------------------------------------
   About Page Components (about.php)
   ------------------------------------------------------------ */
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 18px;
    box-shadow: 0 4px 10px rgba(15, 41, 66, 0.15);
}

/* ------------------------------------------------------------
   Footer (108condo Style)
   ------------------------------------------------------------ */
.site-footer,
.homepage .site-footer {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    padding-top: 60px;
    margin-top: auto;
    border-top: 4px solid var(--secondary);
}

.footer-contact-highlight {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: var(--border-radius);
    padding: 24px 28px;
    margin-bottom: 44px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 840px) {
    .footer-contact-highlight {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
    }
}

.footer-contact-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(197, 155, 39, 0.2), rgba(13, 56, 36, 0.4));
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #ffd978;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.footer-contact-title {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 3px;
}

.footer-contact-val {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 600;
    font-family: var(--font-heading);
}

.footer-contact-val a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-val a:hover {
    color: #ffd978;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-brand-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #94a3b8;
}

.footer-col-title {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.footer-links-list a::before {
    content: "›";
    color: var(--secondary);
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links-list a:hover {
    color: #e5c365;
    transform: translateX(6px);
}

.footer-links-list a:hover::before {
    transform: translateX(2px);
    color: #ffd978;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.92rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    background-color: transparent;
    padding: 20px 0;
    font-size: 0.85rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Floating Mobile Contact Bar */
.mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-sticky-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 10px;
}

/* ------------------------------------------------------------
   Utility Classes for Clean Markup Separation
   ------------------------------------------------------------ */
.lead-card-centered {
    max-width: 720px;
    margin: 0 auto;
    position: static;
}

.filter-btn-h44 {
    height: 44px;
}

.tags-wrap-left {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 36px;
}

.tag-active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.tag-default {
    background-color: white;
    color: var(--text-main);
    border-color: var(--border-color);
}

.badge-static {
    position: static;
    display: inline-block;
}

.badge-condo-static {
    position: static;
}

.btn-fav-static {
    position: static;
    width: auto;
    height: auto;
    border-radius: var(--border-radius-sm);
    padding: 6px 12px;
}

.map-card-flex {
    display: flex;
    gap: 10px;
}

.map-card-img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}

.map-card-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}

.map-card-price-land {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}

.map-card-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
}

.map-card-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.map-sidebar-filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.map-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.map-search-row .form-control {
    flex: 1;
    min-width: 0;
}

.map-filter-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.map-search-btn {
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border-radius: 8px;
    background: #0d3824;
    color: #ffffff;
    border: 1px solid rgba(197, 155, 39, 0.4);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.map-search-btn:hover {
    background: #164e33;
    border-color: #e5c365;
}

.map-sidebar-filter .form-control {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #fbfdfc;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.map-sidebar-filter .form-control:hover {
    border-color: #cbd5e1;
    background-color: #ffffff;
}

.map-sidebar-filter .form-control:focus {
    outline: none;
    border-color: #0d3824;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 56, 36, 0.12);
}

.map-iframe {
    width: 100%;
    height: 100%;
    min-height: 550px;
    border: 0;
    display: block;
}

.map-transit-legend {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: rgba(255,255,255,0.95);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    box-shadow: var(--shadow-sm);
    z-index: 5;
}

.transit-dot-green {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
}

.transit-dot-blue {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.about-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.about-img-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.detail-map-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    height: 260px;
    background-color: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    color: var(--primary);
}

.detail-img-full {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-text-flow {
    color: #475569;
    line-height: 1.8;
}

.detail-list-specs {
    list-style: disc;
    margin-left: 24px;
    color: #475569;
    line-height: 1.8;
}

/* Map page semantic styling */
.map-sidebar-header {
    margin-bottom: 16px;
}

.map-sidebar-title {
    font-size: 1.25rem;
}

.map-results-count {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.map-card-list {
    overflow-y: auto;
    flex: 1;
}

.transit-legend-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.transit-legend-items {
    display: flex;
    gap: 12px;
}

.transit-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Page typography & spacing helpers */
.detail-card-title-seamless {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 16px;
}

.detail-card-title-sub {
    font-size: 1.1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.detail-card-title-aside {
    font-size: 1.05rem;
    border-bottom: none;
    padding-bottom: 0;
}

.property-meta-mb {
    margin-bottom: 8px;
}

.quick-tags-end {
    justify-content: flex-end;
    margin-top: 10px;
}

.agent-avatar-lg {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.agent-contact-padded {
    padding: 20px 0 0 0;
}

.article-breadcrumb {
    margin-bottom: 12px;
}

.article-meta-mb {
    margin-bottom: 28px;
}

.article-img-box-mb {
    margin-bottom: 32px;
}

.article-section-lead {
    color: var(--primary);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.article-ordered-list {
    list-style: decimal;
    margin-left: 24px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-16 {
    margin-bottom: 16px;
}

/* ------------------------------------------------------------
   Responsive Styles
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    /* 1. Grids: Drop to 2 cards per row on Tablet */
    .property-grid-4col {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .article-grid,
    .article-grid-3col {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    /* 2. Advanced Search: 2 columns on Tablet */
    .hero-search-form {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 16px 0 6px 0;
    }

    .hero-search-submit {
        grid-column: span 2;
        width: 100%;
        margin-top: 6px;
    }

    .detail-layout-grid {
        grid-template-columns: 1fr;
    }

    .lead-form-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .condo-all-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .condo-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .top-bar {
        display: none;
    }

    /* 1. Header & Hamburger Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: stretch;
        padding: 24px 16px 36px 16px;
        gap: 8px;
        box-shadow: 6px 0 24px rgba(7, 35, 23, 0.18);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-right: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-main);
        border-radius: var(--border-radius-sm);
        transition: all 0.2s ease;
    }

    .nav-menu .nav-link .nav-icon {
        width: 20px;
        height: 20px;
        color: #166534;
        stroke: currentColor;
        flex-shrink: 0;
        display: inline-block;
    }

    .nav-menu .nav-link:hover {
        background-color: var(--bg-surface-alt);
        color: var(--primary);
        padding-left: 20px;
    }

    .nav-menu .nav-link.active {
        background-color: var(--earth-warm);
        color: var(--primary);
        font-weight: 600;
        border-left: 3px solid var(--secondary);
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    /* 2. Property & Article Cards: 1 column per row with 100% full width */
    .property-grid-4col {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .article-grid,
    .article-grid-3col {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .property-card {
        width: 100%;
        max-width: 100%;
    }

    .property-card-thumb {
        height: clamp(200px, 52vw, 240px);
    }

    .property-card-body {
        padding: 16px 14px;
    }

    /* 3. Minimalist Exploration Strip */
    .quick-nav-card {
        padding: 18px 14px;
    }

    .quick-nav-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 14px;
    }

    .quick-nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .btn-map-explore,
    .btn-advanced-explore {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
    }

    /* 3.1 Advanced Search (search.php): Vertical Stack with 100% full width inputs */
    .search-card-white {
        padding: 16px 14px 20px 14px;
        border-radius: var(--border-radius);
    }

    .hero-search-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 4px 0 12px 0;
        width: 100%;
    }

    .hero-tab-btn {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 90px;
        min-height: 44px;
        justify-content: center;
        padding: 10px 8px;
        font-size: 0.85rem;
    }

    .hero-search-form {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        padding: 14px 0 0 0;
    }

    .form-group-filter {
        width: 100%;
    }

    .form-control,
    select.form-control {
        width: 100%;
        min-height: 46px;
        font-size: 1rem; /* 16px prevents mobile browser zoom */
    }

    .hero-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        height: 48px;
        margin-top: 6px;
        font-size: 1.05rem;
    }

    .quick-tags-wrap {
        justify-content: flex-start;
        gap: 6px;
        margin-top: 14px;
        font-size: 0.82rem;
    }

    .quick-tag-pill {
        padding: 5px 12px;
        font-size: 0.8rem;
    }

    /* Filter Bar Responsiveness */
    .filter-bar-card {
        padding: 16px 14px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .filter-bar-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .filter-bar-grid .form-group-filter {
        width: 100%;
        flex: none;
    }

    .filter-submit-btn {
        width: 100%;
        height: 44px;
        margin-top: 4px;
    }

    .filter-submit-btn svg,
    svg.filter-icon-svg {
        width: 24px !important;
        height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
    }

    /* 4. Section Headers & Sizing */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 24px;
    }

    .section-header .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-slide.active {
        grid-template-columns: 1fr;
    }

    .hero-slide-media {
        min-height: 220px;
        height: 220px;
    }

    .hero-slider-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-slider-thumb:nth-child(2) {
        border-right: none;
    }

    .hero-slider-thumb:nth-child(1),
    .hero-slider-thumb:nth-child(2) {
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .map-page-layout {
        flex-direction: column-reverse;
        height: calc(100vh - var(--header-height));
    }

    .map-sidebar {
        width: 100%;
        height: 50%;
        border-right: none;
        border-top: 1px solid var(--border-color);
    }

    .map-viewport {
        height: 50%;
    }

    .about-grid-2col, .about-contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .condo-compact-grid {
        grid-template-columns: 1fr;
    }

    .lead-card-centered {
        padding: 24px 16px;
    }

    .lead-form-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mobile-sticky-bar {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}

/* Homepage static hero and capped listing controls */
.homepage .hero-section {
    min-height: 300px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #edf3ed 0%, #f8f7f4 58%, #f6f0df 100%);
    padding: clamp(48px, 7vw, 86px) 0;
}

.hero-static-content {
    max-width: 920px;
    text-align: center;
}

.hero-static-eyebrow {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero-static-content h1 {
    margin-top: 12px;
    color: var(--primary-dark);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-static-content > p:last-child {
    max-width: 680px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.8;
}

.homepage .homepage-search-section {
    padding: 28px 0 34px;
    background: #f8f7f4;
}

.homepage .homepage-search-card {
    margin: 0 auto;
}

.view-all-land-btn {
    min-width: 190px;
    justify-content: center;
}

.about-page .about-platform-section {
    padding: 42px 0 18px;
}

.about-page .homepage-about-card,
.about-page .zonedee-bridge-card {
    border-color: var(--border-color);
    background: #fffefa;
    box-shadow: 0 8px 24px rgba(30, 48, 37, 0.07);
}

.about-page .homepage-section-pill {
    border-color: #e3d6b6;
    background: #fbf7eb;
    color: var(--primary-light);
}

.about-page .homepage-about-copy h2,
.about-page .zonedee-bridge-card h2,
.about-page .homepage-benefit h3 {
    color: var(--primary);
}

.about-page .homepage-about-copy p,
.about-page .zonedee-bridge-card p,
.about-page .homepage-benefit p {
    color: var(--text-muted);
}

.about-page .homepage-about-link,
.about-page .homepage-benefit > span {
    color: var(--primary-light);
}

.about-page .homepage-benefit {
    border-left-color: #d8c88f;
}

.about-page .homepage-search-button {
    background: var(--primary);
}

.about-page .homepage-search-button:hover {
    background: var(--primary-light);
}

.zone-brown { background-color: #8d6040; }
.zone-blue { background-color: #3979a5; }
.zone-lightblue { background-color: #62a9ba; }
.zone-whitegreen {
    background: repeating-linear-gradient(135deg, #f7f6e8 0 6px, #5c9a61 6px 9px);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .homepage .hero-section {
        min-height: 250px;
        padding: 42px 0 48px;
    }

    .hero-static-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .hero-static-content h1 br {
        display: none;
    }

    .homepage .homepage-search-card {
        margin: 0;
    }

    .about-page .about-platform-section {
        padding-top: 24px;
    }

    .about-page .homepage-about-card,
    .about-page .zonedee-bridge-card {
        gap: 28px;
    }
}

/* ============================================================
   Detail Page Balance - 108Condo-inspired information hierarchy
   ============================================================ */
.detail-page main.section {
    padding-top: clamp(26px, 4vw, 42px);
    background: linear-gradient(180deg, #f1f5f1 0, #f8f7f4 360px);
}

.detail-page .breadcrumb {
    max-width: 1160px;
    margin: 0 auto 14px;
    padding: 0 4px;
}

.detail-page .detail-header-wrap {
    margin-bottom: 26px;
    padding: clamp(20px, 3vw, 32px);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 28px rgba(30, 48, 37, 0.08);
}

.detail-page .detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: clamp(20px, 4vw, 48px);
    align-items: stretch;
}

.detail-page .detail-title-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-page .property-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-page .filter-results-count,
.detail-page .detail-views-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid #e3e8e1;
    border-radius: var(--border-radius-full);
    background: #f7f9f6;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.detail-page .filter-results-count strong {
    margin-left: 3px;
    color: var(--primary);
}

.detail-page .detail-views-pill {
    border-color: #e8dfc5;
    background: #fffaf0;
    color: #866a27;
}

.detail-page .detail-main-title {
    max-width: 780px;
    margin: 14px 0 10px;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.detail-page .property-location {
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.55;
}

.detail-page .detail-price-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 20px 22px;
    text-align: left;
    background: linear-gradient(135deg, #fffaf0, #f8efd9);
    border: 1px solid #ead9a9;
    border-radius: 16px;
}

.detail-page .detail-price-label {
    display: block;
    margin-bottom: 4px;
    color: #806324;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
}

.detail-page .detail-price-val {
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    line-height: 1.1;
    color: var(--primary);
    white-space: nowrap;
}

.detail-page .detail-price-sub {
    margin-top: 7px;
    color: var(--text-muted);
}

.detail-page .quick-tags-end {
    justify-content: flex-start;
    margin-top: 14px;
}

.detail-page .detail-layout-grid {
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.88fr);
    gap: clamp(22px, 3vw, 32px);
}

.detail-page .detail-layout-grid > * {
    min-width: 0;
}

.detail-page .gallery-container {
    margin-bottom: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(30, 48, 37, 0.09);
}

.detail-page .gallery-main-viewport {
    aspect-ratio: 16 / 10;
    background: #e8ece8;
}

.detail-page .gallery-thumbs-row {
    gap: 10px;
    padding: 12px;
}

.detail-page .detail-card {
    margin-bottom: 24px;
    padding: clamp(20px, 2.6vw, 28px);
    border-radius: 16px;
}

.detail-page .detail-card-title {
    margin-bottom: 18px;
    font-size: 1.2rem;
}

.detail-page .specs-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.detail-page .spec-box {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    text-align: left;
}

.detail-page .spec-box-val {
    font-size: 1rem;
    line-height: 1.4;
}

.detail-page .lead-form-card {
    top: calc(var(--header-height) + 18px);
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid #e4dfd5;
    border-top: 4px solid var(--secondary);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(30, 48, 37, 0.1);
}

.detail-page .lead-form-header {
    margin-bottom: 20px;
    text-align: left;
}

.detail-page .lead-form-title {
    font-size: 1.3rem;
}

.detail-page .lead-form {
    gap: 13px;
}

.detail-page .agent-contact-card {
    margin-top: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.detail-page .agent-profile-wrap {
    align-items: flex-start;
}

.detail-page .agent-actions-row {
    gap: 8px;
}

@media (max-width: 1024px) {
    .detail-page .detail-title-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .detail-page .detail-layout-grid {
        grid-template-columns: 1fr;
    }

    .detail-page .lead-form-card {
        position: static;
    }

    .detail-page .detail-price-box {
        padding: 16px 18px;
    }

    .detail-page .detail-price-val {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .detail-page main.section {
        padding-top: 18px;
        background: #f8f7f4;
    }

    .detail-page .breadcrumb {
        margin-bottom: 10px;
        padding: 0;
        font-size: 0.78rem;
    }

    .detail-page .detail-header-wrap {
        margin-bottom: 18px;
        padding: 18px 16px;
        border-radius: 15px;
    }

    .detail-page .detail-main-title {
        margin-top: 12px;
        font-size: clamp(1.45rem, 6vw, 1.9rem);
        line-height: 1.34;
    }

    .detail-page .property-location {
        font-size: 0.88rem;
    }

    .detail-page .detail-price-box {
        padding: 15px 16px;
        border-radius: 13px;
    }

    .detail-page .detail-price-val {
        font-size: clamp(1.75rem, 8vw, 2.1rem);
    }

    .detail-page .detail-price-sub {
        font-size: 0.8rem;
    }

    .detail-page .gallery-container {
        margin-bottom: 18px;
        border-radius: 14px;
    }

    .detail-page .gallery-thumbs-row {
        gap: 6px;
        padding: 8px;
    }

    .detail-page .detail-card {
        margin-bottom: 18px;
        padding: 18px 16px;
        border-radius: 14px;
    }

    .detail-page .detail-card-title {
        font-size: 1.08rem;
    }

    .detail-page .specs-overview-grid {
        gap: 8px;
    }

    .detail-page .spec-box {
        min-height: 76px;
        padding: 10px;
    }

    .detail-page .spec-box-label {
        font-size: 0.72rem;
    }

    .detail-page .spec-box-val {
        font-size: 0.88rem;
    }

    .detail-page .lead-form-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
}

/* Compact mobile price panel - keeps the detail header visually balanced */
@media (max-width: 768px) {
    .detail-page .detail-price-box {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: baseline;
        column-gap: 10px;
        row-gap: 2px;
        padding: 14px 16px;
    }

    .detail-page .detail-price-label {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .detail-page .detail-price-val {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        font-size: clamp(1.55rem, 7vw, 1.9rem);
        line-height: 1.15;
        white-space: nowrap;
    }

    .detail-page .detail-price-sub {
        grid-column: 2;
        grid-row: 2;
        margin-top: 0;
        font-size: 0.78rem;
    }

    .detail-page .quick-tags-end {
        grid-column: 1 / -1;
        margin-top: 8px;
    }

    .detail-page .quick-tags-end .btn {
        min-height: 36px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
    .brand-logo {
        font-size: 1.25rem;
    }

    .brand-logo .brand-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .hero-tab-btn {
        flex: 1 1 100%;
    }

    .property-price {
        font-size: 1.22rem;
    }
}

/* ============================================================
   Homepage Refinement - Land-first carousel, listings and footer
   ============================================================ */
.hero-section {
    background: linear-gradient(135deg, #f4f1e9 0%, #fbfaf7 56%, #e7efe7 100%);
    padding: clamp(42px, 6vw, 72px) 0 clamp(48px, 7vw, 82px);
}

.hero-content {
    max-width: 1160px;
}

.hero-tagline-badge {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(13, 56, 36, 0.16);
    color: var(--primary);
    box-shadow: 0 5px 18px rgba(27, 38, 30, 0.06);
}

.hero-title-gold {
    color: var(--primary-dark);
    background: linear-gradient(120deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    max-width: 720px;
}

.btn-stone-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff8e4;
    box-shadow: 0 8px 22px rgba(13, 56, 36, 0.18);
    text-shadow: none;
}

.btn-stone-cta:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(13, 56, 36, 0.24);
}

.hero-banner-slider {
    position: relative;
    display: block;
    max-width: 1080px;
    min-height: 390px;
    margin: clamp(28px, 4vw, 42px) auto 0;
    overflow: hidden;
    border: 1px solid rgba(13, 56, 36, 0.12);
    border-radius: 20px;
    background: #173d2a;
    box-shadow: 0 18px 42px rgba(27, 38, 30, 0.16);
}

.hero-slides {
    position: relative;
    min-height: 390px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
    opacity: 0;
    visibility: hidden;
    transform: translateX(28px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 1;
}

.hero-slide-media {
    position: relative;
    min-height: 390px;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 390px;
    object-fit: cover;
    border-radius: 0;
}

.hero-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 35, 23, 0.02), rgba(7, 35, 23, 0.32));
    pointer-events: none;
}

.hero-slide-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 1;
    padding: 6px 12px;
    border-radius: var(--border-radius-full);
    background: var(--secondary);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.hero-slide-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 48px);
    background: linear-gradient(155deg, #164e33, #0d3824);
    color: #fff;
    text-align: left;
}

.hero-slide-kicker {
    color: #d9c276;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.hero-slide-content h2 {
    color: #fff;
    font-size: clamp(1.35rem, 2.7vw, 2rem);
    line-height: 1.35;
    margin-bottom: 22px;
}

.hero-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.hero-slide-meta span {
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius-full);
    color: #e8eee8;
    font-size: 0.84rem;
}

.hero-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
}

.hero-slide-footer strong {
    color: #f6d87d;
    font-family: var(--font-heading);
    font-size: clamp(1.22rem, 2.5vw, 1.65rem);
}

.hero-slide-cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-sm);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
}

.hero-slide-cta:hover {
    background: #fff;
    color: var(--primary);
}

.hero-slider-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: rgba(7, 35, 23, 0.45);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider-control:hover {
    background: var(--secondary);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.hero-slider-prev { left: 18px; }
.hero-slider-next { right: 18px; }

.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    z-index: 3;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-slider-dot.active {
    width: 25px;
    border-radius: var(--border-radius-full);
    background: var(--secondary);
}

.land-listings-section {
    background: var(--bg-page);
}

.section-eyebrow {
    margin-bottom: 5px;
    color: var(--secondary-hover);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.land-filter-card {
    border-top: 3px solid var(--secondary);
    border-color: #e1ded5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(27, 38, 30, 0.07);
}

.land-filter-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1.1fr auto;
    align-items: end;
}

.land-filter-grid .filter-submit-btn {
    background: var(--primary);
    border-color: var(--primary);
}

.land-filter-grid .filter-submit-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.land-filter-meta {
    margin-top: 16px;
    margin-bottom: 0;
    padding: 14px 0 0;
}

.land-filter-meta .sort-select-wrap select {
    min-height: 36px;
    padding: 5px 28px 5px 10px;
    background: var(--bg-surface);
}

.land-listing-grid {
    align-items: stretch;
}

.land-listing-grid .property-card-land {
    animation: fadeIn 0.35s ease both;
}

.land-listing-grid .property-card-land.land-card-hidden {
    display: none !important;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    min-height: 48px;
    margin-top: 32px;
}

.load-more-btn {
    min-width: 180px;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.load-more-btn:hover {
    background: var(--primary);
    color: #fff;
}

.load-more-btn[hidden] {
    display: none;
}

.site-footer {
    padding-top: 38px;
    background: #eef0e9;
    color: var(--text-muted);
    border-top: 1px solid #dfe4d9;
}

.site-footer .container {
    text-align: center;
}

.site-footer .footer-brand-title {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 1.35rem;
}

.footer-disclaimer {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px 20px;
    border: 1px solid #d8dfd2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
}

.footer-disclaimer h4 {
    margin-bottom: 5px;
    color: #9a6818;
    font-size: 0.95rem;
}

.footer-disclaimer p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.site-footer .footer-bottom,
.homepage .site-footer .footer-bottom {
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px solid #d8dfd2;
    color: #7b877d;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .land-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .land-filter-grid .filter-submit-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-banner-slider,
    .hero-slides {
        min-height: 0;
    }

    .hero-slide,
    .hero-slide.active {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        transform: none;
    }

    .hero-slide.active {
        display: grid;
    }

    .hero-slide-media,
    .hero-banner-img {
        min-height: 230px;
        height: 230px;
    }

    .hero-slide-content {
        min-height: 235px;
        padding: 24px 48px;
    }

    .hero-slide-content h2 {
        margin-bottom: 14px;
    }

    .hero-slide-meta {
        margin-bottom: 18px;
    }

    .hero-slider-control {
        top: 115px;
    }

    .hero-slider-prev { left: 12px; }
    .hero-slider-next { right: 12px; }

    .land-filter-grid {
        grid-template-columns: 1fr;
    }

    .land-filter-meta {
        align-items: flex-start;
        gap: 12px;
    }

    .land-filter-meta .sort-select-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .land-filter-meta .sort-select-wrap select {
        max-width: 68%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slider-dot,
    .land-listing-grid .property-card-land {
        transition: none;
        animation: none;
    }
}

/* ============================================================
   Homepage Reference Pattern - inspired by 108condo.com
   ============================================================ */
.homepage .site-header {
    background: #0788c4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 3px 14px rgba(4, 80, 119, 0.18);
}

.homepage .brand-logo,
.homepage .brand-logo .brand-tagline,
.homepage .nav-link,
.homepage .nav-link:hover,
.homepage .nav-link.active {
    color: #fff;
}

.homepage .brand-logo .brand-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.homepage .brand-logo .brand-icon svg,
.homepage .nav-link .nav-icon,
.homepage .nav-link:hover .nav-icon,
.homepage .nav-link.active .nav-icon {
    color: #fff;
}

.homepage .brand-logo .brand-accent {
    color: #d8f1ff;
}

.homepage .nav-link:hover,
.homepage .nav-link.active {
    background: rgba(255, 255, 255, 0.14);
}

.homepage .nav-link.active::after {
    display: none;
}

.homepage .hero-section {
    padding: 0;
    background: #12394d;
}

.homepage .hero-banner-slider {
    width: 100%;
    max-width: none;
    min-height: 560px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.homepage .hero-slides {
    min-height: 560px;
}

.homepage .hero-slide {
    display: block;
    grid-template-columns: none;
}

.homepage .hero-slide.active {
    display: block;
}

.homepage .hero-slide-media,
.homepage .hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 560px;
}

.homepage .hero-slide-media::after {
    background: linear-gradient(90deg, rgba(4, 24, 37, 0.84) 0%, rgba(4, 24, 37, 0.56) 45%, rgba(4, 24, 37, 0.12) 100%), linear-gradient(0deg, rgba(4, 24, 37, 0.45), transparent 38%);
}

.homepage .hero-slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    min-height: 560px;
    margin: 0 auto;
    padding: clamp(190px, 19vw, 220px) clamp(28px, 6vw, 76px) 86px;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    text-align: left;
}

.homepage .hero-slide-badge {
    top: clamp(104px, 12vw, 150px);
    left: clamp(28px, 6vw, 76px);
    transform: translateY(-1px);
    background: #ee8b16;
    color: #fff;
}

.homepage .hero-slide-kicker {
    display: none;
    color: #b9e9ff;
}

.homepage .hero-slide-content h2 {
    max-width: 870px;
    margin-top: 0;
    color: #fff;
    font-size: clamp(1.9rem, 4.2vw, 3.45rem);
    line-height: 1.22;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.homepage .hero-slide-meta span {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.homepage .hero-slide-footer {
    justify-content: flex-start;
    gap: 24px;
}

.homepage .hero-slide-footer strong {
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    background: rgba(11, 36, 62, 0.78);
    color: #ffbd2e;
    font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.homepage .hero-slide-cta {
    padding: 12px 22px;
    border: 0;
    border-radius: var(--border-radius-full);
    background: #078fd1;
    box-shadow: 0 7px 18px rgba(2, 80, 119, 0.26);
}

.homepage .hero-slide-cta:hover {
    background: #fff;
    color: #0575ad;
}

.homepage .hero-slider-control {
    width: 46px;
    height: 46px;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
}

.homepage .hero-slider-control:hover {
    background: #078fd1;
    color: #fff;
}

.homepage .hero-slider-dots {
    bottom: 22px;
}

.homepage .homepage-search-section,
.homepage .homepage-about-section,
.homepage .land-listings-section {
    background-color: #f1f8fc;
    background-image: linear-gradient(rgba(8, 136, 196, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 136, 196, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
}

.homepage-search-section {
    padding: 0 0 28px;
}

.homepage-search-card {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: center;
    margin: -54px auto 0;
    padding: 24px 30px;
    border: 1px solid #d7e5ed;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(16, 77, 105, 0.12);
}

.homepage-section-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border: 1px solid #dcebf3;
    border-radius: var(--border-radius-full);
    background: #f3f9fc;
    color: #0788c4;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
}

.homepage-search-intro h2,
.homepage-about-copy h2,
.zonedee-bridge-card h2 {
    margin-top: 9px;
    color: #15273b;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
}

.homepage-search-intro p,
.homepage-about-copy p,
.zonedee-bridge-card p {
    margin-top: 4px;
    color: #687b8a;
    font-size: 0.92rem;
}

.homepage-search-form {
    display: flex;
    gap: 12px;
}

.homepage-search-input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #cbdde7;
    border-radius: 9px;
    background: #fff;
    color: var(--text-main);
}

.homepage-search-input:focus {
    outline: none;
    border-color: #0788c4;
    box-shadow: 0 0 0 3px rgba(7, 136, 196, 0.12);
}

.homepage-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 9px;
    background: #0788c4;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.homepage-search-button:hover {
    background: #056e9f;
    color: #fff;
    transform: translateY(-1px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.homepage .land-listings-section {
    padding-top: 46px;
}

.homepage .land-listings-section .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.homepage .land-listings-section .section-title {
    padding-left: 0;
    color: #15273b;
}

.homepage .land-listings-section .section-title::before {
    top: auto;
    bottom: -12px;
    left: 50%;
    width: 34px;
    height: 4px;
    transform: translateX(-50%);
}

.homepage .land-listings-section .section-subtitle {
    max-width: 720px;
    margin: 16px auto 0;
}

.homepage .land-filter-card {
    border-top-color: #0788c4;
}

.homepage-about-section {
    padding: 42px 0 64px;
}

.homepage-about-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 44px;
    align-items: center;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid #d7e5ed;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(16, 77, 105, 0.07);
}

.homepage-about-copy h2 {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.35;
}

.homepage-about-copy p {
    margin-top: 12px;
    line-height: 1.8;
}

.homepage-about-link {
    display: inline-flex;
    gap: 6px;
    margin-top: 20px;
    color: #0788c4;
    font-family: var(--font-heading);
    font-weight: 700;
}

.homepage-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
}

.homepage-benefit {
    padding-left: 14px;
    border-left: 3px solid #b8e4f5;
}

.homepage-benefit > span {
    color: #0788c4;
    font-size: 1.35rem;
}

.homepage-benefit h3 {
    margin-top: 3px;
    color: #15273b;
    font-size: 1rem;
}

.homepage-benefit p {
    margin-top: 3px;
    color: #718492;
    font-size: 0.86rem;
    line-height: 1.55;
}

.zonedee-bridge-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: 30px;
    padding: 24px 34px;
    border: 1px solid #d7e5ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(16, 77, 105, 0.06);
}

.zonedee-bridge-card h2 {
    font-size: clamp(1.15rem, 2.3vw, 1.55rem);
}

.zonedee-bridge-link {
    flex: 0 0 auto;
    border-radius: var(--border-radius-full);
}

.homepage .site-footer {
    padding-top: 48px;
    background: #0788c4;
    color: rgba(255, 255, 255, 0.82);
    border-top: 0;
}

.homepage .site-footer .footer-brand-title {
    color: #fff;
}

.homepage .footer-disclaimer {
    border-color: rgba(255, 255, 255, 0.18);
    background: transparent;
}

.homepage .footer-disclaimer h4,
.homepage .footer-disclaimer p {
    color: rgba(255, 255, 255, 0.88);
}

.homepage .site-footer .footer-bottom {
    margin-top: 30px;
    border-top-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
    .homepage .hero-slide,
    .homepage .hero-slide.active {
        position: absolute;
        display: none;
    }

    .homepage .hero-slide.active {
        display: block;
    }

    .homepage .hero-banner-slider,
    .homepage .hero-slides,
    .homepage .hero-slide-content,
    .homepage .hero-slide-media,
    .homepage .hero-banner-img {
        min-height: 540px;
    }

    .homepage .hero-slide-content {
        padding: 196px 44px 74px;
    }

    .homepage .hero-slide-badge {
        top: 130px;
        left: 44px;
    }

    .homepage .hero-slide-content h2 {
        margin-top: 0;
        font-size: clamp(1.55rem, 7vw, 2.25rem);
    }

    .homepage .hero-slide-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .homepage-search-card,
    .homepage-about-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .homepage-search-card {
        margin-top: -38px;
        padding: 22px 18px;
    }

    .homepage-search-form {
        flex-direction: column;
    }

    .homepage-search-button {
        width: 100%;
    }

    .homepage-about-card {
        padding: 26px 20px;
    }

    .zonedee-bridge-card {
        align-items: stretch;
        flex-direction: column;
        padding: 24px 20px;
    }
}

/* ============================================================
   Sitewide Land Palette - shared across every permitted page
   ============================================================ */
:root {
    --primary: #173f2b;
    --primary-dark: #0e2b1d;
    --primary-light: #245d3d;
    --secondary: #c49a3a;
    --secondary-hover: #9e7624;
    --accent: #245d3d;
    --accent-hover: #173f2b;
    --bg-page: #f8f6f0;
    --bg-surface-alt: #f0eee6;
    --border-color: #e2ded2;
    --text-main: #223229;
    --text-muted: #647269;
    --text-light: #8b968d;
}

body {
    background: var(--bg-page);
}

.site-header,
.homepage .site-header {
    background: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 14px rgba(14, 43, 29, 0.16);
}

.brand-logo,
.homepage .brand-logo,
.nav-link,
.homepage .nav-link,
.nav-link:hover,
.homepage .nav-link:hover,
.nav-link.active,
.homepage .nav-link.active {
    color: #fff;
}

.brand-logo .brand-icon,
.homepage .brand-logo .brand-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #f0d37d;
    border-color: rgba(240, 211, 125, 0.4);
    box-shadow: none;
}

.brand-logo .brand-icon svg,
.homepage .brand-logo .brand-icon svg,
.nav-link .nav-icon,
.homepage .nav-link .nav-icon,
.nav-link:hover .nav-icon,
.homepage .nav-link:hover .nav-icon,
.nav-link.active .nav-icon,
.homepage .nav-link.active .nav-icon {
    color: #f0d37d;
}

.brand-logo .brand-accent,
.homepage .brand-logo .brand-accent {
    color: #f0d37d;
}

.brand-logo .brand-tagline,
.homepage .brand-logo .brand-tagline {
    color: rgba(255, 255, 255, 0.72);
}

.nav-link:hover,
.homepage .nav-link:hover,
.nav-link.active,
.homepage .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after,
.homepage .nav-link.active::after {
    display: block;
    background: var(--secondary);
}

.section-title,
.homepage .land-listings-section .section-title,
.detail-main-title,
.detail-card-title,
.article-title,
.article-detail-content h2,
.article-detail-content h3 {
    color: var(--primary);
}

.section-title::before,
.homepage .land-listings-section .section-title::before {
    background: linear-gradient(to bottom, var(--secondary), var(--primary-light));
}

.section-link,
.article-read-link,
.homepage-about-link {
    color: var(--primary-light);
}

.section-link:hover,
.article-read-link:hover,
.homepage-about-link:hover {
    color: var(--primary-dark);
}

.btn-primary,
.btn-accent,
.filter-submit-btn,
.btn-retry {
    background: var(--primary);
}

.btn-primary:hover,
.btn-accent:hover,
.filter-submit-btn:hover,
.btn-retry:hover {
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
}

.property-card,
.article-card,
.detail-card,
.gallery-container,
.detail-header-wrap,
.agent-contact-card,
.homepage-search-card,
.homepage-about-card,
.zonedee-bridge-card {
    border-color: var(--border-color);
    box-shadow: 0 6px 20px rgba(30, 48, 37, 0.07);
}

.property-card:hover,
.article-card:hover {
    border-color: rgba(196, 154, 58, 0.7);
    box-shadow: 0 12px 28px rgba(30, 48, 37, 0.12);
}

.property-price,
.land-price-total,
.detail-price-val {
    color: var(--primary);
}

.property-card-land:hover {
    border-color: var(--secondary);
    box-shadow: 0 12px 30px rgba(196, 154, 58, 0.16);
}

.price-per-wah-pill {
    background: #fbf5e4;
    border-color: #ead9a9;
    color: #88651d;
}

.land-specs-grid-3,
.land-specs-box,
.spec-box,
.quick-nav-card,
.search-card-white {
    background: var(--bg-surface-alt);
    border-color: var(--border-color);
}

.filter-bar-card {
    border-top-color: var(--secondary);
    border-color: var(--border-color);
    background: #fffefa;
}

.filter-bar-grid .form-group-filter label {
    color: var(--primary-light);
}

.filter-bar-grid .form-control:focus,
.filter-bar-grid select.form-control:focus,
.filter-bar-grid input.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(36, 93, 61, 0.12);
}

.zone-red { background-color: #b94b45; }
.zone-orange { background-color: #d27a28; }
.zone-yellow { background-color: #d1a72f; }
.zone-purple { background-color: #8058a4; }
.zone-green { background-color: #4f9653; }

.breadcrumb a,
.breadcrumb a:hover {
    color: var(--primary-light);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-btn:hover {
    border-color: var(--secondary);
    color: var(--primary);
}

.gallery-thumb.active {
    border-color: var(--secondary);
}

.detail-map-box,
.article-callout,
.service-card,
.stat-box {
    border-color: var(--border-color);
    background: #fffefa;
}

.service-icon,
.stat-number {
    color: var(--primary-light);
}

.map-sidebar,
.map-sidebar-filter,
.map-card-item {
    border-color: var(--border-color);
    background: #fffefa;
}

.map-card-item:hover,
.map-card-item.active {
    border-color: var(--secondary);
    background: #fbf5e4;
}

.map-card-price,
.map-card-price-land {
    color: var(--primary);
}

.homepage .homepage-search-section,
.homepage .homepage-about-section,
.homepage .land-listings-section {
    background-color: #f3f1e9;
    background-image: linear-gradient(rgba(36, 93, 61, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(36, 93, 61, 0.04) 1px, transparent 1px);
}

.homepage .homepage-section-pill {
    border-color: #e3d6b6;
    background: #fbf7eb;
    color: var(--primary-light);
}

.homepage .homepage-search-button,
.homepage .homepage-about-link,
.homepage .hero-slide-cta {
    background: var(--primary-light);
}

.homepage .homepage-search-button:hover,
.homepage .hero-slide-cta:hover {
    background: var(--primary);
    color: #fff;
}

.homepage .homepage-about-link {
    background: transparent;
}

.homepage .hero-slide-cta:hover {
    background: #fff;
    color: var(--primary);
}

.homepage .hero-slider-control:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

.homepage .hero-slide-footer strong {
    color: #f0d37d;
}

.site-footer,
.homepage .site-footer {
    padding-top: 42px;
    background: #e8ede5;
    color: var(--text-muted);
    border-top: 1px solid #d5dfd2;
}

.site-footer .container,
.homepage .site-footer .container {
    text-align: center;
}

.site-footer .footer-brand-title,
.homepage .site-footer .footer-brand-title {
    color: var(--primary);
}

.footer-disclaimer,
.homepage .footer-disclaimer {
    border-color: #d4dfd0;
    background: rgba(255, 255, 255, 0.58);
}

.footer-disclaimer h4,
.homepage .footer-disclaimer h4 {
    color: #906e27;
}

.footer-disclaimer p,
.homepage .footer-disclaimer p {
    color: var(--text-muted);
}

.site-footer .footer-bottom,
.homepage .site-footer .footer-bottom {
    border-top-color: #d4dfd0;
    color: #7d897f;
}

@media (max-width: 768px) {
    .nav-menu,
    .homepage .nav-menu {
        background: var(--primary);
        border-right-color: rgba(255, 255, 255, 0.12);
    }

    .nav-menu .nav-link,
    .homepage .nav-menu .nav-link,
    .nav-menu .nav-link:hover,
    .homepage .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active,
    .homepage .nav-menu .nav-link.active {
        color: #fff;
    }

    .nav-menu .nav-link:hover,
    .homepage .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active,
    .homepage .nav-menu .nav-link.active {
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-menu .nav-link .nav-icon,
    .homepage .nav-menu .nav-link .nav-icon {
        color: #f0d37d;
    }

    .nav-toggle span,
    .homepage .nav-toggle span {
        background-color: #f0d37d;
    }

    .nav-toggle:hover,
    .homepage .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .homepage .hero-slide,
    .homepage .hero-slide.active {
        position: absolute;
        display: none;
    }

    .homepage .hero-slide.active {
        display: block;
    }
}

/* ============================================================
   Footer Reference Pattern - TeedinCondo adaptation
   ============================================================ */
.site-footer,
.homepage .site-footer {
    margin-top: auto;
    padding: 54px 0 0;
    background: linear-gradient(135deg, #173f2b 0%, #245d3d 100%);
    color: rgba(255, 255, 255, 0.86);
    border-top: 4px solid var(--secondary);
}

.site-footer .container,
.homepage .site-footer .container {
    text-align: center;
}

.footer-brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    font-family: var(--font-heading);
}

.footer-brand-lockup:hover {
    color: #ffffff;
}

.footer-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #f0d37d;
}

.footer-brand-mark svg {
    width: 44px;
    height: 44px;
}

.footer-brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.footer-brand-name span {
    color: #f0d37d;
}

.footer-description {
    max-width: 790px;
    margin: 28px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.94rem;
    line-height: 1.75;
}

.footer-description strong {
    color: #ffffff;
}

.footer-description span {
    display: inline;
    color: rgba(255, 255, 255, 0.68);
}

.site-footer .footer-bottom,
.homepage .site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.86rem;
    text-align: left;
}

.footer-copyright {
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0;
}

.footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 17px;
    border: 1px solid rgba(240, 211, 125, 0.48);
    border-radius: var(--border-radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-nav a + a {
    margin-left: 10px;
}

.footer-nav a:hover {
    background: #f0d37d;
    border-color: #f0d37d;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .site-footer,
    .homepage .site-footer {
        padding-top: 42px;
    }

    .footer-description {
        margin-top: 22px;
        font-size: 0.88rem;
    }

    .site-footer .footer-bottom,
    .homepage .site-footer .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 18px;
        margin-top: 32px;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 8px;
    }

    .footer-nav a + a {
        margin-left: 0;
    }

    .footer-nav a {
        padding: 6px 12px;
        font-size: 0.78rem;
    }
}

/* Footer follows the light header palette */
.site-footer,
.homepage .site-footer {
    background: #ffffff;
    color: var(--text-muted);
    border-top: 1px solid #e5e8e3;
}

.footer-brand-lockup,
.homepage .footer-brand-lockup {
    color: var(--primary);
}

.footer-brand-lockup:hover,
.homepage .footer-brand-lockup:hover {
    color: var(--primary-light);
}

.footer-brand-mark,
.homepage .footer-brand-mark {
    color: var(--primary-light);
}

.footer-brand-name,
.homepage .footer-brand-name {
    color: var(--primary);
}

.footer-brand-name span,
.homepage .footer-brand-name span {
    color: var(--secondary);
}

.footer-description,
.homepage .footer-description {
    color: var(--text-muted);
}

.footer-description strong,
.homepage .footer-description strong {
    color: var(--primary);
}

.footer-description span,
.homepage .footer-description span {
    color: #7c877f;
}

.site-footer .footer-bottom,
.homepage .site-footer .footer-bottom {
    border-top-color: #e5e8e3;
    color: #718078;
}

.footer-nav a,
.homepage .footer-nav a {
    border-color: #dfe5dc;
    background: #f1f3f0;
    color: var(--primary);
}

.footer-nav a:hover,
.homepage .footer-nav a:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

/* Header and footer shared surface */
.site-header,
.homepage .site-header {
    background: linear-gradient(135deg, #173f2b 0%, #245d3d 100%);
    border-bottom: 1px solid rgba(240, 211, 125, 0.32);
    box-shadow: 0 3px 14px rgba(14, 43, 29, 0.2);
}

.brand-logo,
.homepage .brand-logo,
.nav-link,
.homepage .nav-link,
.nav-link:hover,
.homepage .nav-link:hover,
.nav-link.active,
.homepage .nav-link.active {
    color: #ffffff;
}

.brand-logo .brand-icon,
.homepage .brand-logo .brand-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #f0d37d;
    border-color: rgba(240, 211, 125, 0.5);
    box-shadow: none;
}

.brand-logo .brand-icon svg,
.homepage .brand-logo .brand-icon svg,
.nav-link .nav-icon,
.homepage .nav-link .nav-icon,
.nav-link:hover .nav-icon,
.homepage .nav-link:hover .nav-icon,
.nav-link.active .nav-icon,
.homepage .nav-link.active .nav-icon {
    color: #f0d37d;
}

.brand-logo .brand-accent,
.homepage .brand-logo .brand-accent {
    color: #f0d37d;
}

.brand-logo .brand-tagline,
.homepage .brand-logo .brand-tagline {
    color: rgba(255, 255, 255, 0.72);
}

.nav-link:hover,
.homepage .nav-link:hover,
.nav-link.active,
.homepage .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.nav-link.active::after,
.homepage .nav-link.active::after {
    display: block;
    background: linear-gradient(90deg, #f0d37d, #c49a3a);
}

@media (max-width: 768px) {
    .nav-menu,
    .homepage .nav-menu {
        background: linear-gradient(135deg, #173f2b 0%, #245d3d 100%);
        border-right-color: rgba(240, 211, 125, 0.28);
    }

    .nav-menu .nav-link,
    .homepage .nav-menu .nav-link,
    .nav-menu .nav-link:hover,
    .homepage .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active,
    .homepage .nav-menu .nav-link.active {
        color: #ffffff;
    }

    .nav-menu .nav-link:hover,
    .homepage .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active,
    .homepage .nav-menu .nav-link.active {
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-menu .nav-link .nav-icon,
    .homepage .nav-menu .nav-link .nav-icon,
    .nav-toggle span,
    .homepage .nav-toggle span {
        color: #f0d37d;
        background-color: #f0d37d;
    }
}

/* ============================================================
   Header Reference Palette - clean white / forest green / gold
   ============================================================ */
.site-header,
.homepage .site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e8e3;
    box-shadow: 0 2px 10px rgba(23, 63, 43, 0.08);
}

.brand-logo,
.homepage .brand-logo,
.nav-link,
.homepage .nav-link,
.nav-link:hover,
.homepage .nav-link:hover,
.nav-link.active,
.homepage .nav-link.active {
    color: #173f2b;
}

.brand-logo .brand-icon,
.homepage .brand-logo .brand-icon {
    background: linear-gradient(145deg, #173f2b, #0e2b1d);
    color: #d7b34f;
    border-color: rgba(23, 63, 43, 0.08);
    box-shadow: 0 5px 12px rgba(23, 63, 43, 0.18);
}

.brand-logo .brand-icon svg,
.homepage .brand-logo .brand-icon svg,
.nav-link .nav-icon,
.homepage .nav-link .nav-icon,
.nav-link:hover .nav-icon,
.homepage .nav-link:hover .nav-icon,
.nav-link.active .nav-icon,
.homepage .nav-link.active .nav-icon {
    color: #246443;
}

.brand-logo .brand-accent,
.homepage .brand-logo .brand-accent {
    color: #c49a3a;
}

.brand-logo .brand-tagline,
.homepage .brand-logo .brand-tagline {
    color: #778179;
}

.nav-link:hover,
.homepage .nav-link:hover {
    background: #f4f6f3;
    color: #173f2b;
}

.nav-link.active,
.homepage .nav-link.active {
    background: #eef1ee;
    color: #173f2b;
}

.nav-link.active::after,
.homepage .nav-link.active::after {
    display: block;
    background: linear-gradient(90deg, #173f2b, #c49a3a);
}

@media (max-width: 768px) {
    .nav-menu,
    .homepage .nav-menu {
        background: #ffffff;
        border-right-color: #e1e6df;
        box-shadow: 6px 0 24px rgba(23, 63, 43, 0.12);
    }

    .nav-menu .nav-link,
    .homepage .nav-menu .nav-link,
    .nav-menu .nav-link:hover,
    .homepage .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active,
    .homepage .nav-menu .nav-link.active {
        color: #173f2b;
    }

    .nav-menu .nav-link:hover,
    .homepage .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active,
    .homepage .nav-menu .nav-link.active {
        background: #eef1ee;
    }

    .nav-menu .nav-link .nav-icon,
    .homepage .nav-menu .nav-link .nav-icon {
        color: #246443;
    }

    .nav-toggle span,
    .homepage .nav-toggle span {
        background-color: #173f2b;
    }

    .nav-toggle:hover,
    .homepage .nav-toggle:hover {
        background: #f0f3ef;
    }
}

/* Final logo asset override: replaces the legacy inline building icon */
.brand-logo .brand-icon,
.homepage .brand-logo .brand-icon {
    width: 58px;
    height: 44px;
    flex: 0 0 58px;
    background-color: transparent;
    background-image: url('../images/teedincondo-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 280% auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: transparent;
}

.brand-logo .brand-icon svg,
.homepage .brand-logo .brand-icon svg,
.footer-brand-mark svg,
.homepage .footer-brand-mark svg {
    display: none;
}

.footer-brand-mark,
.homepage .footer-brand-mark {
    width: 76px;
    height: 54px;
    flex: 0 0 76px;
    background-color: transparent;
    background-image: url('../images/teedincondo-logo.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 280% auto;
    color: transparent;
}

@media (max-width: 768px) {
    .brand-logo .brand-icon,
    .homepage .brand-logo .brand-icon {
        width: 48px;
        height: 38px;
        flex-basis: 48px;
    }

    .footer-brand-mark,
    .homepage .footer-brand-mark {
        width: 68px;
        height: 48px;
        flex-basis: 68px;
    }
}

/* Final homepage layout override for the dynamic hero carousel */
.homepage .hero-section {
    min-height: 0;
    display: block;
    padding: 0;
    background: #173d2a;
}

.hero-static-content {
    max-width: 920px;
    text-align: center;
}

.hero-static-eyebrow {
    color: var(--secondary);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.hero-static-content h1 {
    margin-top: 12px;
    color: var(--primary-dark);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-static-content > p:last-child {
    max-width: 680px;
    margin: 16px auto 0;
    color: var(--text-muted);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.8;
}

.homepage .homepage-search-section {
    padding: 28px 0 34px;
    background-color: #f8f7f4;
    background-image: none;
}

.homepage .homepage-search-card {
    margin: 0 auto;
}

.view-all-land-btn {
    min-width: 190px;
    justify-content: center;
}

.about-page .about-platform-section {
    padding: 42px 0 18px;
}

.about-page .homepage-about-card,
.about-page .zonedee-bridge-card {
    border-color: var(--border-color);
    background: #fffefa;
    box-shadow: 0 8px 24px rgba(30, 48, 37, 0.07);
}

.about-page .homepage-section-pill {
    border-color: #e3d6b6;
    background: #fbf7eb;
    color: var(--primary-light);
}

.about-page .homepage-about-copy h2,
.about-page .zonedee-bridge-card h2,
.about-page .homepage-benefit h3 {
    color: var(--primary);
}

.about-page .homepage-about-copy p,
.about-page .zonedee-bridge-card p,
.about-page .homepage-benefit p {
    color: var(--text-muted);
}

.about-page .homepage-about-link,
.about-page .homepage-benefit > span {
    color: var(--primary-light);
}

.about-page .homepage-benefit {
    border-left-color: #d8c88f;
}

.about-page .homepage-search-button {
    background: var(--primary);
}

.about-page .homepage-search-button:hover {
    background: var(--primary-light);
}

.zone-brown { background-color: #8d6040; }
.zone-blue { background-color: #3979a5; }
.zone-lightblue { background-color: #62a9ba; }
.zone-whitegreen {
    background: repeating-linear-gradient(135deg, #f7f6e8 0 6px, #5c9a61 6px 9px);
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .homepage .hero-section {
        min-height: 0;
        padding: 0;
    }

    .hero-static-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.45rem);
    }

    .hero-static-content h1 br {
        display: none;
    }

    .homepage .homepage-search-card {
        margin: 0;
    }

    .about-page .about-platform-section {
        padding-top: 24px;
    }

    .about-page .homepage-about-card,
    .about-page .zonedee-bridge-card {
        gap: 28px;
    }
}

/* Dynamic hero slider restored: full-width imagery with accessible controls */
.homepage .hero-banner-slider {
    width: 100%;
    max-width: none;
    min-height: 520px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.homepage .hero-slides {
    min-height: 520px;
}

.homepage .hero-slide-media,
.homepage .hero-banner-img {
    min-height: 520px;
}

.hero-slider-loading,
.hero-slider-empty {
    min-height: 520px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 32px;
    color: #f8f7f4;
    text-align: center;
    background: linear-gradient(135deg, #173d2a, #0d3824);
}

.hero-slider-empty span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.hero-slide-content h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
    .homepage .hero-banner-slider,
    .homepage .hero-slides,
    .homepage .hero-slide-media,
    .homepage .hero-banner-img,
    .hero-slider-loading,
    .hero-slider-empty {
        min-height: 500px;
    }

    .homepage .hero-slide-content {
        min-height: 500px;
    }
}

/* Hero composition refinement: align the badge with the content and center controls */
.homepage .hero-slide-content {
    min-height: 520px;
    padding: 104px clamp(56px, 7vw, 108px) 68px;
}

.homepage .hero-slide-badge {
    position: static;
    align-self: flex-start;
    margin-bottom: 18px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, #d1a642, #f1c963);
    color: #173d2a;
    font-size: 0.86rem;
    line-height: 1.2;
    box-shadow: 0 8px 18px rgba(7, 35, 23, 0.2);
}

.homepage .hero-slide-content h2 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: clamp(1.85rem, 3.35vw, 3rem);
    line-height: 1.2;
    text-wrap: balance;
}

.homepage .hero-slide-footer {
    margin-top: 24px;
}

.homepage .hero-slider-control {
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding: 0 0 3px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: rgba(16, 45, 34, 0.56);
    color: #fffdf5;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(7, 35, 23, 0.22);
    backdrop-filter: blur(6px);
    transform: translateY(-50%);
}

.homepage .hero-slider-prev { left: clamp(16px, 3vw, 42px); }
.homepage .hero-slider-next { right: clamp(16px, 3vw, 42px); }

.homepage .hero-slider-control:hover,
.homepage .hero-slider-control:focus-visible {
    border-color: #f1c963;
    background: #d1a642;
    color: #173d2a;
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.homepage .hero-slider-dots {
    bottom: 22px;
}

@media (max-width: 768px) {
    .homepage .hero-slide-content {
        min-height: 500px;
        padding: 100px 44px 64px;
    }

    .homepage .hero-slide-badge {
        margin-bottom: 14px;
    }

    .homepage .hero-slide-content h2 {
        max-width: 680px;
        font-size: clamp(1.6rem, 6.4vw, 2.3rem);
    }

    .homepage .hero-slide-footer {
        margin-top: 18px;
    }

    .homepage .hero-slider-control {
        top: 50%;
        width: 46px;
        height: 46px;
        font-size: 1.7rem;
    }

    .homepage .hero-slider-prev { left: 14px; }
    .homepage .hero-slider-next { right: 14px; }
}

/* Functional listing feedback */
.listing-no-results {
    display: grid;
    gap: 6px;
    margin-top: 22px;
    padding: 34px 20px;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-surface);
    color: var(--text-muted);
    text-align: center;
}

.listing-no-results[hidden] {
    display: none;
}

.listing-no-results strong {
    color: var(--primary);
    font-family: var(--font-heading);
}

/* Detail gallery controls and requested card ordering */
.detail-layout-grid > div:first-child {
    display: flex;
    flex-direction: column;
}

.detail-layout-grid > div:first-child > .gallery-container {
    order: 1;
}

.detail-layout-grid > div:first-child > .detail-description-card {
    order: 2;
}

.detail-layout-grid > div:first-child > .detail-specs-card {
    order: 3;
}

.detail-layout-grid > div:first-child > .detail-card:not(.detail-description-card):not(.detail-specs-card) {
    order: 4;
}

.gallery-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(13, 56, 36, 0.68);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-control:hover,
.gallery-control:focus-visible {
    background: var(--secondary);
    color: var(--primary-dark);
    outline: none;
    transform: translateY(-50%) scale(1.06);
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

/* Article cards behave like full clickable links */
.article-card[role="link"] {
    cursor: pointer;
}

.article-card[role="link"]:focus-visible {
    outline: 3px solid rgba(196, 154, 58, 0.45);
    outline-offset: 4px;
}

.article-views {
    margin-left: 4px;
}

/* Leaflet OpenStreetMap layout */
.map-page-simple {
    display: block;
    height: auto;
    min-height: calc(100vh - var(--header-height));
    overflow: visible;
    padding-bottom: 36px;
    background: var(--bg-page);
}

.map-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 42px 24px 24px;
}

.map-page-heading .section-title {
    margin-top: 14px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    white-space: nowrap;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.map-legend-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.map-legend-land { background: #27734a; }
.map-legend-condo { background: #c49a3a; }

.map-viewport-leaflet {
    width: min(calc(100% - 48px), var(--container-max));
    height: min(70vh, 720px);
    min-height: 480px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.leaflet-map {
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.teedin-map-controls {
    display: grid;
    gap: 10px;
    margin: 14px;
}

.teedin-map-control {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid rgba(223, 228, 225, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: #17261d;
    font-family: Arial, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(20, 48, 32, 0.14);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.teedin-map-control:hover,
.teedin-map-control:focus-visible {
    background: #f3f7f4;
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(20, 48, 32, 0.2);
    outline: none;
    transform: translateY(-1px);
}

.teedin-map-control:active {
    transform: scale(0.96);
}

.teedin-map-control svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.teedin-map-control-zoom {
    font-size: 2rem;
}

.map-viewport-leaflet:fullscreen,
.map-viewport-leaflet:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
}

.teedin-map-marker-wrap {
    background: transparent;
    border: 0;
}

.teedin-map-marker {
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 3px 10px rgba(20, 35, 27, 0.35);
    transform: rotate(-45deg);
}

.teedin-map-marker::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    margin: 6px auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
}

.teedin-map-marker-land { background: #27734a; }
.teedin-map-marker-condo { background: #c49a3a; }

.map-popup-card {
    display: grid;
    gap: 6px;
    min-width: 210px;
    color: var(--text-main);
}

.map-popup-card strong {
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1.35;
}

.map-popup-card span:not(.map-popup-type) {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.map-popup-card b {
    color: var(--primary-light);
    font-family: var(--font-heading);
}

.map-popup-card a {
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
}

.map-popup-type {
    justify-self: start;
    padding: 3px 8px;
    border-radius: var(--border-radius-full);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
}

.map-popup-type-land { background: #27734a; }
.map-popup-type-condo { background: #c49a3a; color: #243b2c; }

.map-load-error {
    display: grid;
    height: 100%;
    min-height: 480px;
    place-items: center;
    padding: 24px;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 768px) {
    .map-page-heading {
        display: block;
        padding: 30px 16px 18px;
    }

    .map-page-heading .section-title {
        font-size: 1.8rem;
    }

    .map-legend {
        width: fit-content;
        margin-top: 18px;
    }

    .map-viewport-leaflet {
        width: calc(100% - 32px);
        min-height: 430px;
        height: 64vh;
    }

    .leaflet-map,
    .map-load-error {
        min-height: 430px;
    }

    .teedin-map-controls {
        margin: 10px;
        gap: 8px;
    }

    .teedin-map-control {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }

    .teedin-map-control svg {
        width: 22px;
        height: 22px;
    }

    .gallery-control {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .gallery-prev { left: 10px; }
    .gallery-next { right: 10px; }
}
/* API-backed listing presentation: keep legacy demo markup inert while the
   allowed page templates render the current Zonedee response. */
.listing-page .property-grid > .property-card:not(.api-property-card) {
    display: none;
}

/* ------------------------------------------------------------
   Final API listing layout
   Keep real land/condo cards aligned from the first column. The listing
   pagination is a sibling of the grid and is rebuilt by main.js.
   ------------------------------------------------------------ */
.listing-page .property-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    justify-items: stretch;
    gap: clamp(18px, 1.8vw, 26px);
    width: 100%;
}

.listing-page .property-grid > .property-card {
    grid-column: auto;
    width: 100%;
    max-width: none;
}

.listing-page .property-grid > .listing-no-results {
    grid-column: 1 / -1;
}

.listing-page .pagination {
    position: static;
    display: flex;
    width: 100%;
    min-height: 40px;
    margin: 34px 0 0;
    clear: both;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.listing-page .pagination:empty,
.listing-page .pagination[hidden] {
    display: none;
}

.listing-page .property-card-thumb {
    height: clamp(200px, 18vw, 240px);
}

.listing-page .property-title {
    min-height: 2.9em;
}

.listing-page .property-location {
    min-height: 2.6em;
    align-items: flex-start;
}

@media (max-width: 1100px) {
    .listing-page .property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .listing-page .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .listing-page .property-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-page .property-card-thumb {
        height: 220px;
    }

    .listing-page .pagination {
        gap: 4px;
        margin-top: 26px;
    }

    .listing-page .pagination .page-btn {
        min-width: 38px;
        padding-inline: 8px;
    }
}

/* Zonedee-style compact filter toolbar for the land listing page. */
.zonedee-filter-bar {
    margin: 28px 0 20px;
    padding: 8px 0 12px;
    border: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.zd-filter-form,
.zd-filter-toolbar-row {
    width: 100%;
}

.zd-filter-toolbar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
}

.zd-filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.zd-filter-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.zd-filter-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-width: 170px;
    height: 48px;
    padding: 0 18px 0 22px;
    border: 1px solid #edf0ed;
    border-radius: var(--border-radius-full);
    background: #ffffff;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(20, 48, 32, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.zd-filter-trigger:hover,
.zd-filter-dropdown.is-open .zd-filter-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 5px 16px rgba(20, 48, 32, 0.12);
}

.zd-filter-chevron {
    color: var(--primary);
    font-size: 1.35rem;
    line-height: 0.7;
    transform: translateY(-2px);
}

.zd-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1150;
    width: 326px;
    padding: 26px 26px 0;
    border: 1px solid #e8ece8;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(20, 48, 32, 0.16);
}

.zd-filter-dropdown.is-open .zd-filter-panel {
    display: block;
}

.zd-filter-panel h2 {
    margin: 0 0 18px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.08rem;
    line-height: 1.35;
}

.zd-choice-list {
    display: grid;
    gap: 15px;
    padding-bottom: 28px;
}

.zd-choice,
.zd-check-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.35;
    cursor: pointer;
}

.zd-choice input,
.zd-check-choice input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin: 0;
    accent-color: var(--primary);
}

.zd-filter-panel-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0 -26px;
    padding: 14px 14px;
    border-top: 1px solid #e5e8e5;
}

.zd-filter-done {
    min-width: 100px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: #f06a59;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.zd-price-panel {
    width: 420px;
}

.zd-price-slider {
    position: relative;
    height: 34px;
    margin: 6px 0 12px;
}

.zd-price-slider::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 8px;
    right: 8px;
    height: 4px;
    border-radius: 99px;
    background: #20252d;
}

.zd-price-slider input[type='range'] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 34px;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
}

.zd-price-slider input[type='range']::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.zd-price-slider input[type='range']::-moz-range-track {
    height: 4px;
    background: transparent;
}

.zd-price-slider input[type='range']::-webkit-slider-thumb {
    width: 34px;
    height: 34px;
    margin-top: -15px;
    border: 2px solid #20252d;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: auto;
    appearance: none;
}

.zd-price-slider input[type='range']::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border: 2px solid #20252d;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: auto;
}

.zd-price-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.zd-price-values label {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    padding: 0 14px;
    border: 1px solid #dce2dc;
    border-radius: 10px;
    color: var(--primary);
    font-size: 1.1rem;
}

.zd-price-values input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text-main);
    font: inherit;
    background: transparent;
}

.zd-price-values input::-webkit-inner-spin-button,
.zd-price-values input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.zd-price-dash {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
}

.zd-nearby-panel {
    width: 414px;
    padding-bottom: 0;
}

.zd-nearby-search {
    width: 100%;
    height: 56px;
    margin-bottom: 16px;
    padding: 0 18px;
    border: 1px solid #dce2dc;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    outline: 0;
}

.zd-nearby-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36, 93, 61, 0.12);
}

.zd-nearby-options {
    display: grid;
    gap: 15px;
    max-height: 340px;
    padding: 0 8px 18px 0;
    overflow-y: auto;
    scrollbar-color: #8e918e transparent;
}

.filter-results-count {
    flex: 0 0 auto;
    color: var(--text-muted);
    font-size: 0.98rem;
    white-space: nowrap;
}

.filter-results-count strong {
    color: var(--primary);
}

.zd-sort-wrap {
    margin-left: auto;
    gap: 10px;
    white-space: nowrap;
}

.zd-sort-wrap label {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.zd-sort-wrap select {
    min-width: 142px;
    height: 44px;
    padding: 0 28px 0 12px;
    border: 1px solid #e5e8e5;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.96rem;
}

@media (max-width: 900px) {
    .zd-filter-toolbar-row {
        flex-wrap: wrap;
        padding: 8px 0;
    }

    .zd-filter-controls {
        flex: 1 1 100%;
    }

    .zd-sort-wrap {
        margin-left: auto;
    }
}

@media (max-width: 560px) {
    .zonedee-filter-bar {
        margin-top: 20px;
    }

    .zd-filter-toolbar-row {
        align-items: stretch;
        gap: 10px;
    }

    .zd-filter-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .zd-filter-dropdown,
    .zd-filter-trigger {
        width: 100%;
        min-width: 0;
    }

    .zd-filter-trigger {
        gap: 8px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .zd-filter-dropdown:nth-child(3) {
        grid-column: 1 / -1;
    }

    .filter-results-count {
        order: 3;
        font-size: 0.9rem;
    }

    .zd-sort-wrap {
        order: 4;
        margin-left: auto;
    }

    .zd-sort-wrap label {
        font-size: 0.86rem;
    }

    .zd-sort-wrap select {
        min-width: 128px;
        height: 40px;
        font-size: 0.86rem;
    }

    .zd-filter-panel,
    .zd-price-panel,
    .zd-nearby-panel {
        width: min(414px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
    }

    .zd-filter-dropdown:nth-child(2) .zd-filter-panel,
    .zd-filter-dropdown:nth-child(3) .zd-filter-panel {
        right: 0;
        left: auto;
    }

    .zd-price-values {
        gap: 7px;
    }

    .zd-price-values label {
        padding: 0 9px;
        font-size: 0.95rem;
    }
}

/* ============================================================
   Final responsive pass - desktop, tablet and mobile stability
   ============================================================ */
main,
section,
.container,
.navbar-inner,
.section-header,
.detail-title-row,
.detail-title-content,
.detail-layout-grid,
.footer-bottom {
    min-width: 0;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

@media (max-width: 1180px) {
    .navbar-inner {
        gap: 12px;
    }

    .nav-menu {
        gap: 3px;
    }

    .nav-link {
        gap: 5px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 0.9rem;
    }

    .brand-logo {
        gap: 7px;
        font-size: 1.32rem;
    }

    .property-grid-4col {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-bar-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .filter-bar-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: end;
    }

    .filter-submit-btn {
        width: 100%;
    }

    .map-page-heading {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 900px) {
    .property-grid-4col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-bar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-page .detail-title-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .detail-page .detail-price-box {
        width: 100%;
    }

    .footer-description {
        max-width: 680px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: flex;
        flex: 0 0 44px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: min(85vw, 320px);
        height: calc(100vh - var(--header-height));
        margin: 0;
        padding: 24px 16px 36px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        overflow-y: auto;
        background: #ffffff;
        border-right: 1px solid #e1e6df;
        box-shadow: 6px 0 24px rgba(23, 63, 43, 0.12);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 12px 16px;
        color: var(--primary);
        font-size: 1rem;
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-actions {
        display: none;
    }

    .homepage .hero-slide-content {
        padding-left: 68px;
        padding-right: 68px;
    }

    .detail-page .detail-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, var(--container-max));
        padding-left: 0;
        padding-right: 0;
    }

    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .section-title {
        font-size: clamp(1.45rem, 5.5vw, 1.95rem);
        line-height: 1.35;
    }

    .section-subtitle {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .filter-bar-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .filter-bar-grid .form-group-filter,
    .filter-submit-btn {
        width: 100%;
        min-width: 0;
    }

    .property-grid,
    .property-grid-4col {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .property-card-thumb {
        height: clamp(190px, 58vw, 240px);
    }

    .property-title {
        font-size: 1rem;
        line-height: 1.45;
    }

    .property-location {
        line-height: 1.55;
    }

    .homepage .homepage-search-card {
        padding: 20px 16px;
    }

    .homepage .homepage-search-intro h2 {
        font-size: clamp(1.2rem, 5.5vw, 1.55rem);
        line-height: 1.4;
    }

    .homepage .hero-slide-content {
        padding-left: 56px;
        padding-right: 56px;
    }

    .homepage .hero-slide-content h2 {
        max-width: 100%;
        font-size: clamp(1.45rem, 6.5vw, 2.2rem);
        line-height: 1.3;
    }

    .homepage .hero-slide-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .homepage .hero-slide-footer strong {
        white-space: normal;
        line-height: 1.2;
    }

    .homepage .hero-slider-control {
        width: 42px;
        height: 42px;
        font-size: 1.55rem;
    }

    .homepage .hero-slider-prev { left: 10px; }
    .homepage .hero-slider-next { right: 10px; }

    .detail-page .detail-header-wrap,
    .detail-page .detail-card,
    .detail-page .detail-agent-card,
    .detail-page .detail-lead-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .detail-page .detail-main-title {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
        overflow-wrap: anywhere;
    }

    .detail-page .detail-price-box {
        display: block;
        text-align: left;
    }

    .detail-page .detail-price-val {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        font-size: clamp(1.55rem, 8vw, 2.25rem);
        line-height: 1.2;
    }

    .detail-page .gallery-main-viewport {
        aspect-ratio: 4 / 3;
    }

    .detail-page .gallery-thumbs-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-page .gallery-control {
        width: 40px;
        height: 40px;
    }

    .article-detail-content {
        padding: 24px 16px;
        border-radius: 14px;
    }

    .article-detail-content h2 {
        font-size: 1.35rem;
    }

    .article-detail-content p {
        font-size: 1rem;
    }

    .map-page-heading {
        padding: 28px 12px 18px;
    }

    .map-page-heading .section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .map-legend {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .map-viewport-leaflet {
        width: calc(100% - 24px);
        height: min(68vh, 620px);
        min-height: 420px;
    }

    .leaflet-map,
    .map-load-error {
        min-height: 420px;
    }

    .footer-description {
        font-size: 0.86rem;
        line-height: 1.75;
    }

    .footer-copyright {
        white-space: normal;
    }
}

@media (max-width: 560px) {
    .brand-logo {
        max-width: calc(100% - 52px);
        font-size: 1.14rem;
    }

    .brand-logo .brand-tagline {
        font-size: 0.62rem;
    }

    .hero-slide-content {
        padding-left: 48px;
        padding-right: 48px;
    }

    .homepage .hero-slide-content {
        padding: 92px 48px 62px;
    }

    .homepage .hero-slide-badge {
        max-width: calc(100% - 96px);
    }

    .homepage .hero-slide-content h2 {
        -webkit-line-clamp: 4;
        font-size: clamp(1.35rem, 7vw, 1.8rem);
    }

    .homepage .hero-slide-footer {
        gap: 10px;
    }

    .homepage .hero-slide-cta {
        width: 100%;
    }

    .detail-page .gallery-thumbs-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-page .detail-location-box {
        gap: 8px;
        padding: 14px;
    }

    .detail-page .detail-card-title {
        font-size: 1rem;
        gap: 7px;
    }

    .page-btn {
        min-width: 38px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .footer-nav {
        width: 100%;
    }

    .footer-nav a {
        flex: 1 1 auto;
        justify-content: center;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Final land-card fit: keep the three-column spec row readable at desktop
   widths without allowing long Thai measurements or zoning labels to clip. */
.land-specs-grid-3 {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
}

.land-spec-col {
    min-width: 0;
}

.land-spec-col-val {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.35;
}

.land-spec-col .zone-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------
   Zonedee-style detail contact panel
   Agent information is presented first, followed by the lead form.
   Colors remain TeedinCondo green/gold rather than copying the reference.
   ------------------------------------------------------------ */
.detail-page .detail-contact-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.detail-page .detail-agent-card {
    margin: 0;
    padding: 18px;
    border: 1px solid #e4e8e2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(30, 48, 37, 0.08);
}

.detail-page .agent-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #edf0ec;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-page .agent-source-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef6f0;
    color: var(--primary-light);
    font-size: 0.72rem;
    white-space: nowrap;
}

.detail-page .agent-profile-wrap {
    align-items: center;
    gap: 13px;
    margin-bottom: 10px;
}

.detail-page .agent-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 2px solid #d8bd68;
    background: #f4f6f2;
}

.detail-page .agent-profile-copy {
    min-width: 0;
}

.detail-page .agent-name {
    font-size: 1.08rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.detail-page .agent-badge {
    margin-top: 3px;
    color: #159447;
    font-size: 0.78rem;
}

.detail-page .agent-status-dot {
    font-size: 0.68rem;
}

.detail-page .agent-contact-status {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.detail-page .detail-agent-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-page .detail-agent-actions .btn {
    min-height: 42px;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.detail-page .btn-agent-call {
    background: var(--primary-light);
    border: 1px solid var(--primary-light);
    color: #ffffff;
}

.detail-page .btn-agent-call:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.detail-page .btn-agent-email {
    background: #ffffff;
    border: 1px solid #cbd8d0;
    color: var(--primary);
}

.detail-page .btn-agent-email:hover {
    background: #f4f8f4;
    border-color: var(--primary-light);
}

.detail-page .detail-lead-card {
    margin: 0;
    padding: 20px 18px;
    border: 1px solid #e4e8e2;
    border-top: 3px solid var(--secondary);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(30, 48, 37, 0.08);
}

.detail-page .detail-lead-card .lead-form-header {
    margin-bottom: 16px;
}

.detail-page .detail-lead-card .lead-form-title {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 1.08rem;
    line-height: 1.4;
}

.detail-page .detail-lead-card .lead-form-title span {
    color: var(--primary-light);
    flex: 0 0 auto;
}

.detail-page .detail-lead-card .lead-form-subtitle {
    font-size: 0.78rem;
    line-height: 1.55;
}

.detail-page .detail-lead-card .lead-form {
    gap: 11px;
}

.detail-page .detail-lead-card .lead-form .form-group {
    gap: 5px;
}

.detail-page .detail-lead-card .lead-form label {
    font-size: 0.78rem;
    font-weight: 700;
}

.detail-page .detail-lead-card .lead-form input,
.detail-page .detail-lead-card .lead-form textarea {
    min-height: 42px;
    padding: 10px 12px;
    border-color: #cbd8e4;
    border-radius: 10px;
    font-size: 0.82rem;
}

.detail-page .detail-lead-card .lead-form textarea {
    min-height: 86px;
}

.detail-page .detail-lead-card .lead-form input:focus,
.detail-page .detail-lead-card .lead-form textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(36, 93, 61, 0.11);
}

.detail-page .detail-lead-submit {
    min-height: 44px;
    margin-top: 4px;
    border: 0;
    border-radius: 10px;
    background: #c39b6c;
    color: #ffffff;
    font-size: 0.86rem;
}

.detail-page .detail-lead-submit:hover {
    background: #a98257;
}

.detail-page .detail-location-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: #f2f8f3;
    border: 1px solid #d7e7da;
    border-radius: 12px;
    height: auto;
    min-height: 0;
    overflow: visible;
}

.detail-page .detail-location-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.detail-page .detail-location-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-page .detail-location-copy strong {
    color: var(--primary);
    font-size: 0.92rem;
}

.detail-page .detail-location-copy p {
    margin: 5px 0 8px;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.detail-page .detail-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
    margin: 12px 0 10px;
    padding-top: 12px;
    border-top: 1px solid #d7e7da;
}

.detail-page .detail-location-grid div {
    min-width: 0;
}

.detail-page .detail-location-grid span,
.detail-page .detail-location-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.detail-page .detail-location-grid span {
    color: var(--text-muted);
    font-size: 0.74rem;
}

.detail-page .detail-location-grid strong {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
}

/* About page: factual microsite overview without inflated company claims. */
.about-page .about-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 12px;
}

.about-page .about-overview-card {
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: #fffefa;
    box-shadow: 0 8px 24px rgba(30, 48, 37, 0.07);
}

.about-page .about-overview-card-muted {
    background: var(--bg-surface-alt);
}

.about-page .about-overview-card .homepage-section-pill {
    margin-bottom: 18px;
}

.about-page .about-overview-card h2 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.4;
}

.about-page .about-overview-card p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.85;
}

.about-page .about-overview-card p strong {
    color: var(--primary);
}

.about-page .service-card {
    min-width: 0;
}

.about-page .service-icon {
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    border: 1px solid rgba(196, 154, 58, 0.32);
    color: #f0d37d;
    box-shadow: 0 5px 12px rgba(23, 63, 43, 0.16);
}

.about-page .service-card .detail-card-title {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.about-page .service-card .article-excerpt {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    overflow: visible;
    text-overflow: clip;
    max-height: none;
    white-space: normal;
    line-height: 1.7;
}

.about-page .about-platform-section {
    padding-top: 34px;
    padding-bottom: 20px;
}

.about-page .zonedee-bridge-card {
    margin-top: 22px;
}

.detail-page .detail-location-copy a {
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Zonedee listing CTA in the shared header. */
.header-listing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 9px 15px;
    border: 1px solid rgba(240, 211, 125, 0.55);
    border-radius: 999px;
    background: #f0d37d;
    color: #173f2b;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.header-listing-cta:hover {
    background: #f7df9a;
    color: #173f2b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 211, 125, 0.25);
}

@media (max-width: 900px) and (min-width: 769px) {
    .navbar-inner {
        gap: 10px;
    }

    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 0.84rem;
    }

    .header-listing-cta {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.76rem;
    }
}

@media (max-width: 768px) {
    .header-listing-cta {
        margin-left: auto;
        padding: 8px 11px;
        font-size: 0.76rem;
    }
}

@media (max-width: 420px) {
    .navbar-inner {
        gap: 6px;
    }

    .brand-logo {
        gap: 7px;
        font-size: 1.18rem;
    }

    .brand-logo .brand-icon {
        width: 32px;
        height: 32px;
    }

    .brand-logo .brand-tagline {
        font-size: 0.6rem;
    }

    .header-listing-cta {
        padding: 7px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .detail-page .agent-card-topline {
        font-size: 0.75rem;
    }

    .detail-page .detail-agent-card,
    .detail-page .detail-lead-card {
        padding: 16px;
    }

    .detail-page .detail-lead-card .lead-form-title {
        font-size: 1rem;
    }

    .detail-page .detail-location-grid {
        grid-template-columns: 1fr;
    }

    .about-page .about-overview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.listing-page .api-property-card {
    display: flex;
}

.listing-page .api-property-card .property-card-thumb img {
    background: var(--surface-muted, #eef2ed);
}

.listing-page .api-property-card .property-specs-list {
    gap: 0.45rem 0.8rem;
}

/* Final overflow guard for API text, long Thai titles, filter controls and
   the full-bleed hero at narrow viewport widths. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.property-grid,
.property-grid-4col,
.filter-bar-card,
.filter-bar-grid,
.detail-layout-grid,
.detail-title-content,
.detail-price-box {
    min-width: 0;
    max-width: 100%;
}

/* Keep the shared page wrapper constrained by --container-max. */
.container {
    min-width: 0;
}

.property-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.property-card,
.property-card-body,
.property-title,
.property-location,
.property-specs-list,
.filter-bar-grid > * {
    min-width: 0;
}

.property-title,
.property-location,
.property-spec-item,
.detail-main-title,
.detail-price-val,
.detail-price-sub {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.property-title a {
    display: block;
}

.filter-title-row,
.sort-select-wrap,
.land-price-row,
.hero-slide-footer {
    min-width: 0;
    flex-wrap: wrap;
}

.filter-results-count,
.sort-select-wrap,
.sort-select-wrap select,
.land-price-total,
.price-per-wah-pill {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.form-control,
.filter-submit-btn,
.homepage-search-form,
.homepage-search-input,
.homepage-search-button {
    max-width: 100%;
    min-width: 0;
}

.homepage .hero-banner-slider,
.homepage .hero-slides {
    height: 560px;
    min-height: 0;
}

.homepage .hero-slide-media,
.homepage .hero-banner-img,
.homepage .hero-slide-content {
    height: 100%;
    min-height: 0;
}

.homepage .hero-slide-content h2 {
    max-width: min(820px, 100%);
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .container {
        width: min(100% - 24px, var(--container-max));
    }

    .homepage .hero-banner-slider,
    .homepage .hero-slides,
    .homepage .hero-slide-media,
    .homepage .hero-banner-img,
    .homepage .hero-slide-content {
        height: 480px;
        min-height: 0;
    }

    .homepage .hero-slide-content {
        width: 100%;
        padding: 132px 52px 56px;
        justify-content: flex-start;
    }

    .homepage .hero-slide-badge {
        top: 78px;
        left: 52px;
        max-width: calc(100% - 104px);
        white-space: normal;
    }

    .homepage .hero-slide-content h2 {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: clamp(1.45rem, 6.5vw, 2.1rem);
        line-height: 1.28;
    }

    .homepage .hero-slide-meta {
        max-height: 76px;
        overflow: hidden;
        margin-bottom: 14px;
    }

    .homepage .hero-slide-meta span {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .homepage .hero-slide-footer {
        max-width: 100%;
        gap: 10px;
    }

    .homepage .hero-slide-footer strong {
        font-size: clamp(1.35rem, 6vw, 1.9rem);
        overflow-wrap: anywhere;
    }

    .homepage .hero-slider-control {
        z-index: 4;
        width: 40px;
        height: 40px;
        font-size: 1.45rem;
    }

    .homepage .hero-slider-prev { left: 8px; }
    .homepage .hero-slider-next { right: 8px; }

    .detail-price-box {
        width: 100%;
        text-align: left;
    }

    .detail-price-val {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }
}

/* Keep the final listing breakpoints after all shared grid rules. */
@media (max-width: 1100px) {
    .listing-page .property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .listing-page .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .listing-page .property-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .listing-page .property-card-thumb {
        height: 220px;
    }

    .listing-page .pagination {
        gap: 4px;
        margin-top: 26px;
    }

    .listing-page .pagination .page-btn {
        min-width: 38px;
        padding-inline: 8px;
    }
}

/* Last-mile mobile overrides: keep the most constrained viewport readable. */
@media (max-width: 768px) {
    .site-header {
        z-index: 1200;
    }

    .nav-toggle {
        position: relative;
        z-index: 1250;
    }

    .nav-overlay {
        top: var(--header-height);
        width: 100%;
        height: calc(100vh - var(--header-height));
    }

    .nav-menu {
        z-index: 1300;
    }

    .filter-bar-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-page .detail-price-val {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .homepage .hero-slide-content {
        padding: 100px 56px 64px;
    }

    .property-card,
    .property-card-body {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    .homepage .hero-slide-content {
        padding: 92px 48px 62px;
    }

    .homepage .hero-slide-content h2 {
        font-size: clamp(1.35rem, 7vw, 1.8rem);
        -webkit-line-clamp: 4;
    }
}

/* Property cards: show the complete title while keeping lower specs aligned. */
.property-card {
    height: 100%;
}

.property-card-body {
    min-width: 0;
    min-height: 0;
}

.property-title {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
    word-break: break-word;
    min-height: 2.8em;
}

.property-location {
    align-items: flex-start;
    min-height: 2.8em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.land-spec-col-val {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.property-specs-list,
.property-card-land .land-specs-grid-3 {
    margin-top: auto;
}

.property-views-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    max-width: calc(100% - 24px);
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--border-radius-full);
    background: rgba(17, 38, 27, 0.78);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(7, 35, 23, 0.22);
    backdrop-filter: blur(6px);
}

.property-card-thumb > .badge-land,
.property-card-thumb > .badge-condo {
    top: 50px;
}

/* Mobile drawer: keep navigation items anchored beneath the header. */
@media (max-width: 768px) {
    .nav-menu {
        justify-content: flex-start;
        padding-top: 14px;
    }
}

@media (max-width: 560px) {
    .property-views-badge {
        top: 10px;
        right: 10px;
        min-height: 26px;
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .property-card-thumb > .badge-land,
    .property-card-thumb > .badge-condo {
        top: 46px;
    }
}
