/* ================================================================
   Material Symbols — self-hosted (no CDN dependency)
   ================================================================ */
@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/MaterialSymbolsRounded.ttf') format('truetype');
}

/* ================================================================
   GoaKeys — Zillow-Inspired Design System
   British Racing Green (#004225) + Champagne Gold (#D4AF37)
   Clean, image-forward, scannable, FOMO-subtle
   ================================================================ */

:root {
    /* Core Brand Colors */
    --primary: #004225;
    --primary-hover: #002b18;
    --primary-light: #006b3a;
    --accent: #D4AF37;
    --gold: #D4AF37;

    /* Semantic Colors */
    --bg-color: #FFFFFF;
    --surface: #FFFFFF;
    --surface-alt: #F7F8FA;
    --surface-hover: #EEF0F2;
    --border-subtle: #E5E7EB;
    --border-strong: #D1D5DB;
    --text-main: #1A1C1B;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --white: #FFFFFF;

    /* Dopamine/FOMO Accents */
    --urgency: #DC2626;
    --urgency-bg: #FEF2F2;
    --trust: #2563EB;
    --trust-bg: #EFF6FF;
    --success: #059669;
    --success-bg: #ECFDF5;
    --warning: #D97706;

    /* Shadows — Zillow-style subtle elevation */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.07);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-inner: inset 0 2px 4px rgba(0,0,0,0.04);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 999px;

    /* Transition */
    --transition-fast: 120ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography — Atkinson Hyperlegible Next body/UI, Source Serif 4 for headings */
    --font-sans: "Atkinson Hyperlegible Next", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: "Source Serif 4", Georgia, serif;

    /* Fluid Type Scale (clamp: min 360px / max 1440px) */
    --text-xs: clamp(12px, 0.35vw + 11.5px, 13px);
    --text-sm: clamp(14px, 0.4vw + 13px, 15px);
    --text-base: clamp(18px, 0.5vw + 17px, 20px);  /* body */
    --text-lg: clamp(19px, 0.55vw + 17px, 21px);
    --text-xl: clamp(21px, 0.6vw + 19px, 24px);
    --text-2xl: clamp(26px, 0.8vw + 22px, 32px);
    --text-3xl: clamp(30px, 1vw + 24px, 40px);
    --text-4xl: clamp(38px, 1.2vw + 30px, 52px);
    --text-5xl: clamp(48px, 1.5vw + 36px, 72px);

    /* Layout */
    --container-max: 1280px;
    --gutter-mobile: 20px;
    --gutter-desktop: 48px;
    --header-height: 64px;
    --touch-target: 48px;
    --touch-target-lg: 56px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    /* Explicit freezes for key animations */
    .gk-slide { animation: none !important; opacity: 0; }
    .gk-slide-1 { opacity: 1 !important; transform: scale(1) !important; }
    .gk-hero-dot { animation: none !important; opacity: 1; }
    .gk-sold-dot { animation: none !important; opacity: 1; }
    .gk-sold-track { animation: none !important; }
    .gk-badge-just-listed, .gk-badge-dot { animation: none !important; opacity: 1; }
    .gk-fav-btn:hover { transform: none !important; }
    .gk-property-card:hover { transform: none !important; }
    .gk-property-card:hover .gk-property-image img { transform: none !important; }
    .gk-category-card:hover { transform: none !important; }
    .gk-neighborhood-card:hover { transform: none !important; }
    .gk-neighborhood-card:hover .gk-neigh-img { transform: none !important; }
    .gk-why-card:hover { transform: none !important; }
    .gk-floating-cta { animation: none !important; opacity: 1; transform: none !important; }
    .gk-back-to-top { transition: none !important; }
    .gk-glass-search:focus-within { transform: none !important; }
    .gk-btn-primary:hover, .gk-btn-white:hover { transform: none !important; }
    .gk-section-link:hover { transform: none !important; }
}

body {
    font-family: var(--font-sans);
    font-size: clamp(18px, 0.5vw + 17px, 20px);
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--text-main);
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Focus visible — gold outline for accessibility */
:focus-visible {
    outline: 3px solid var(--gold) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--accent);
    color: #1A1C1B;
}

/* ================================================================
   Container & Layout Utilities
   ================================================================ */
.gk-container {
    width: min(var(--container-max), 100%);
    margin-inline: auto;
    padding-inline: clamp(var(--gutter-mobile), 4vw, var(--gutter-desktop));
}

/* Section spacing (single source of truth — the duplicate block near the
   end of this file wins the cascade, so this earlier copy is removed). */

/* Section head */
.gk-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(24px, 3vw, 36px);
    gap: 16px;
    flex-wrap: wrap;
}

.gk-section-head-center {
    justify-content: center;
    text-align: center;
}

.gk-section-title {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    font-weight: 600;
    letter-spacing: -0.015em;
}

.gk-section-sub {
    color: var(--text-muted);
    font-size: var(--text-base);
    margin-top: 4px;
    max-width: 60ch;
}

.gk-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
    padding: 12px 16px;
    min-height: 48px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.gk-section-link:hover {
    background: var(--surface-alt);
    color: var(--primary-hover);
}

/* ================================================================
   Buttons — Zillow-style
   ================================================================ */
.gk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
    min-height: var(--touch-target);
    padding: 10px 20px;
    font-size: var(--text-sm);
    letter-spacing: -0.005em;
}

.gk-btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.gk-btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.gk-btn-primary:active {
    transform: translateY(0);
}

.gk-btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}

.gk-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface-alt);
}

.gk-btn-white {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--border-strong);
}

.gk-btn-white:hover {
    background: var(--surface-alt);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.gk-btn-lg {
    min-height: var(--touch-target-lg);
    padding: 14px 28px;
    font-size: var(--text-base);
}

/* ================================================================
   Header
   ================================================================ */
.gk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px clamp(var(--gutter-mobile), 4vw, var(--gutter-desktop));
    background-color: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.gk-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

.gk-logo-icon {
    font-size: 28px;
}

.gk-logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: var(--font-sans);
}

.gk-main-nav {
    display: flex;
    gap: 28px;
}

.gk-nav-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    padding: 14px 12px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.gk-nav-link:hover,
.gk-nav-link.active {
    color: var(--primary);
}

.gk-user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gk-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: var(--touch-target);
    height: var(--touch-target);
    border-radius: var(--radius-md);
    color: var(--primary);
    background: transparent;
}

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

.gk-header-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ================================================================
   Hero
   ================================================================ */
.gk-hero {
    min-height: 600px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px clamp(var(--gutter-mobile), 4vw, var(--gutter-desktop));
    position: relative;
    overflow: hidden;
}

.gk-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gk-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: gk-sliderAnim 18s infinite linear;
}

.gk-slide-1 { animation-delay: 0s !important; opacity: 1 !important; }
.gk-slide-2 { animation-delay: 6s !important; }
.gk-slide-3 { animation-delay: 12s !important; }

@keyframes gk-sliderAnim {
    0% { opacity: 0; transform: scale(1.08); }
    10% { opacity: 1; transform: scale(1.05); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(0.98); }
    100% { opacity: 0; transform: scale(0.98); }
}

.gk-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,20,10,0.55) 0%, rgba(0,30,20,0.45) 50%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}

.gk-hero-content {
    max-width: 920px;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.gk-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #FFE9A8;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.gk-hero-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
    animation: gk-pulse 2s ease-in-out infinite;
}

@keyframes gk-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.gk-hero-title {
    font-family: var(--font-serif);
    font-size: var(--text-5xl);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.gk-hero-sub {
    font-family: var(--font-sans);  /* body font */
    font-size: var(--text-xl);
    font-weight: 400;
    margin-bottom: 36px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    opacity: 0.95;
    max-width: 60ch;  /* cap line length for readability */
    margin-inline: auto;
}

/* Search wrapper */
.gk-search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Search tabs */
.gk-search-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    width: fit-content;
    margin-inline: auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.gk-search-tab {
    padding: 12px 20px;
    min-height: 48px;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
}

.gk-search-tab.active {
    background: var(--white);
    color: var(--primary);
}

.gk-search-tab:hover:not(.active) {
    color: var(--white);
}

/* Glass search form */
.gk-glass-search {
    display: flex;
    padding: 6px;
    border-radius: var(--radius-full);
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow-xl);
}

.gk-glass-search:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.gk-search-icon {
    color: var(--text-muted);
    font-size: 22px;
    margin: 0 14px;
    flex-shrink: 0;
}

.gk-search-input {
    flex: 1;
    border: none;
    font-size: var(--text-base);
    font-weight: 500;
    font-family: var(--font-sans);
    background: transparent;
    color: var(--text-main);
    min-height: 56px;
}

.gk-search-input::placeholder {
    color: var(--text-muted);
}

.gk-search-btn {
    min-height: 52px;
    padding: 0 32px;
    font-size: var(--text-sm);
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.gk-search-btn:hover {
    background: var(--primary-hover);
}

/* ================================================================
   Just Sold Ticker (FOMO)
   ================================================================ */
.gk-sold-ticker {
    background: var(--surface-alt);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    white-space: nowrap;
}

.gk-sold-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
}

.gk-sold-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.gk-sold-dot {
    width: 8px;
    height: 8px;
    background: var(--urgency);
    border-radius: 50%;
    animation: gk-blink 1.5s ease-in-out infinite;
}

@keyframes gk-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.gk-sold-marquee {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 20%, black 80%, transparent);
}

.gk-sold-track {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    animation: gk-marquee 30s linear infinite;
    white-space: nowrap;
}

.gk-sold-marquee:hover .gk-sold-track,
.gk-sold-marquee:focus-within .gk-sold-track {
    animation-play-state: paused;
}

.gk-sold-item {
    font-size: var(--text-sm);
    color: var(--text-main);
    white-space: nowrap;
    padding: 0 8px;
}

.gk-sold-item strong {
    color: var(--primary);
}

.gk-sold-sep {
    color: var(--text-muted);
    flex-shrink: 0;
}

@keyframes gk-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================================================================
   Categories — Zillow-style cards
   ================================================================ */
.gk-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 2vw, 20px);
}

.gk-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(20px, 3vw, 28px);
    min-height: 160px;  /* ensure sufficient touch area */
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.gk-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.gk-cat-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--surface-alt);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: var(--transition);
}

.gk-category-card:hover .gk-cat-icon-wrap {
    background: var(--primary);
}

.gk-cat-icon {
    font-size: 26px;
    color: var(--primary);
    transition: var(--transition);
}

.gk-category-card:hover .gk-cat-icon {
    color: var(--white);
}

.gk-cat-title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 4px;
}

.gk-cat-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================================================
   Property Cards — Zillow-style
   ================================================================ */
.gk-property-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 640px) {
    .gk-property-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gk-property-grid { grid-template-columns: repeat(3, 1fr); }
}

.gk-property-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    text-decoration: none;
    color: inherit;
}

.gk-property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.gk-property-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Property Image */
.gk-property-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-alt);
}

.gk-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gk-property-card:hover .gk-property-image img {
    transform: scale(1.04);
}

.gk-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
    pointer-events: none;
    opacity: 1;
}

/* Price chip */
.gk-price-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.gk-price-chip small {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
}

/* Badges */
.gk-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.gk-badge-just-listed {
    background: var(--gold);
    color: #1A1C1B;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: gk-badge-pulse 2s ease-in-out infinite;
}

.gk-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: gk-badge-pulse 2s ease-in-out infinite;
}

@keyframes gk-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.gk-badge-price-drop {
    background: var(--urgency);
    color: var(--white);
}

/* Favorite button */
.gk-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    z-index: 2;
}

.gk-fav-btn:hover {
    color: var(--urgency);
    transform: scale(1.05);
    background: var(--urgency-bg);
}

.gk-fav-btn:active {
    transform: scale(0.98);
}

/* Saved (toggled) state — driven by aria-pressed from the favorites handler */
.gk-fav-btn[aria-pressed="true"] {
    color: var(--urgency);
    background: var(--urgency-bg);
}

/* Property details */
.gk-property-details {
    padding: 20px;
}

/* Stats row */
.gk-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 8px;
}

.gk-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.gk-stat .material-symbols-rounded {
    font-size: 18px;
}

/* Property title */
.gk-prop-title {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gk-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--trust);
    color: var(--white);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gk-verified .material-symbols-rounded {
    font-size: 12px;
}

/* Location */
.gk-prop-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gk-prop-location .material-symbols-rounded {
    font-size: 16px;
}

/* FOMO line */
.gk-fomo-line {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
}

.gk-views,
.gk-saves {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.gk-views .material-symbols-rounded,
.gk-saves .material-symbols-rounded {
    font-size: 14px;
}

/* Flame icon for view counts (Stitch design) */
.gk-views .material-symbols-rounded {
    color: var(--urgency);
}

/* ================================================================
   Neighborhoods — Horizontal scroll
   ================================================================ */
.gk-neighborhoods-scroll {
    display: flex;
    gap: clamp(16px, 2vw, 20px);
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.gk-neighborhoods-scroll::-webkit-scrollbar {
    height: 6px;
}

.gk-neighborhoods-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.gk-neighborhoods-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px;
}

.gk-neighborhood-card {
    flex: 0 0 auto;
    width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
    min-height: 210px;  /* aspect-ratio 4/3 × 280px = 210px — OK */
}

.gk-neighborhood-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gk-neigh-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.gk-neighborhood-card:hover .gk-neigh-img {
    transform: scale(1.05);
}

.gk-neigh-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7));
}

.gk-neigh-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 1;
}

.gk-neigh-content h3 {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 4px;
}

.gk-neigh-meta {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* ================================================================
   Why GoaKeys
   ================================================================ */
.gk-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
}

@media (min-width: 768px) {
    .gk-why-grid { grid-template-columns: repeat(3, 1fr); }
}

.gk-why-card {
    padding: clamp(24px, 3vw, 32px);
    background: var(--white);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    min-height: 200px;  /* ensure touch target */
}

.gk-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.gk-why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 24px;
}

.gk-why-icon-blue {
    background: var(--trust-bg);
    color: var(--trust);
}

.gk-why-icon-green {
    background: var(--success-bg);
    color: var(--success);
}

.gk-why-icon-gold {
    background: #FEF9E7;
    color: var(--accent);
}

.gk-why-card h3 {
    font-family: var(--font-serif);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: 8px;
}

.gk-why-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 55ch;
}

/* ================================================================
   CTA Banner
   ================================================================ */
.gk-cta-banner {
    background: var(--primary);
    color: var(--white);
    text-align: center;
}

.gk-cta-content {
    max-width: 640px;
    margin: 0 auto;
}

.gk-cta-content h2 {
    font-family: var(--font-serif);
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.gk-cta-content p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: 24px;
}

.gk-cta-content .gk-btn-white:hover {
    background: var(--white);
    color: var(--primary);
}

/* ================================================================
   Footer
   ================================================================ */
.gk-footer {
    background: var(--text-main);
    color: #D1D5DB;
    padding-top: clamp(48px, 6vw, 64px);
}

.gk-footer-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(32px, 4vw, 48px);
}

@media (min-width: 560px) {
    .gk-footer-container { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gk-footer-container { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.gk-footer-brand {
    max-width: 300px;
}

.gk-footer .gk-logo-text {
    color: var(--white);
}

.gk-footer-tagline {
    margin-top: 12px;
    font-size: var(--text-base);
    line-height: 1.6;
    color: #B0B8C1;
    max-width: 55ch;
}

.gk-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.gk-footer-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: #6B7280;
}

.gk-footer-trust .material-symbols-rounded {
    font-size: 16px;
    color: var(--accent);
}

.gk-footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gk-footer-heading {
    font-family: var(--font-serif);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 4px;
}

.gk-footer-col a {
    font-size: var(--text-base);
    color: #D1D5DB;
    padding: 10px 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
}

.gk-footer-col a:hover {
    color: var(--accent);
}

.gk-footer-bottom {
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: var(--text-sm);
    color: #B0B8C1;
}

.gk-footer-bottom p {
    margin: 4px 0;
}

.gk-footer-bottom a {
    color: var(--accent);
}

.gk-footer-bottom a:hover {
    text-decoration: underline;
}

/* ================================================================
   Mobile Floating CTA
   ================================================================ */
.gk-floating-cta {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: 24px;
    max-width: 320px;
    margin: 0 auto;
    z-index: 99;
    padding: 16px 24px;
    min-height: 56px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-base);
    box-shadow: var(--shadow-xl);
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: gk-slide-up 400ms ease-out;
}

@keyframes gk-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .gk-floating-cta {
        display: flex;
    }
}

/* ================================================================
   Back to top button
   ================================================================ */
.gk-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 98;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 250ms ease, transform 250ms ease;
    box-shadow: 0 8px 24px rgba(0, 20, 10, 0.25);
}

.gk-back-to-top:hover {
    background: var(--primary);
}

.gk-back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 900px) {
    .gk-back-to-top {
        bottom: 90px;
        right: 16px;
    }
}

/* ================================================================
   Mobile Responsive — ≤900px
   ================================================================ */
@media (max-width: 900px) {
    .gk-header {
        padding: 10px 16px;
    }

    .gk-logo-text { font-size: 18px; }
    .gk-logo-icon { font-size: 24px; }

    .gk-nav-toggle { display: flex; }

    .gk-header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 8px;
        padding: 20px 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-subtle);
    }

    .gk-header-menu.active { display: flex; }

    .gk-main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
    }

    .gk-nav-link {
        padding: 14px 16px;
        border-radius: var(--radius-md);
        font-size: var(--text-base);
    }

    .gk-nav-link:hover { background: var(--surface-alt); }

    .gk-user-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid var(--border-subtle);
    }

    .gk-user-actions .gk-btn {
        width: 100%;
        justify-content: center;
        min-height: var(--touch-target-lg);
    }

    .gk-hero {
        min-height: 540px;
        height: auto;
        padding: 80px 16px 60px;
    }

    .gk-hero-title { font-size: var(--text-3xl); }
    .gk-hero-sub { font-size: var(--text-base); margin-bottom: 28px; }

    .gk-search-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .gk-search-tab {
        flex: 1;
        padding: 12px 8px;
        font-size: var(--text-xs);
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .gk-glass-search {
        flex-direction: column;
        border-radius: var(--radius-lg);
        padding: 12px;
        gap: 10px;
    }

    .gk-search-icon { display: none; }

    .gk-search-input {
        width: 100%;
        text-align: center;
        min-height: 48px;
    }

    .gk-search-btn {
        width: 100%;
        min-height: var(--touch-target-lg);
    }

    .gk-categories-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gk-category-card {
        flex-direction: row;
        text-align: left;
        padding: 16px;
        gap: 16px;
        min-height: 80px;  /* 48px minimum */
        align-items: center;
    }

    .gk-cat-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .gk-category-card:hover {
        transform: none;
    }

    .gk-cat-title { font-size: var(--text-base); }
    .gk-cat-meta { font-size: var(--text-xs); }

    .gk-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gk-sold-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ================================================================
   Mobile ≤480px
   ================================================================ */
@media (max-width: 480px) {
    .gk-hero-title { font-size: var(--text-2xl); }
    .gk-hero-sub { font-size: var(--text-sm); }

    .gk-search-tab { padding: 8px 6px; font-size: 11px; }

    .gk-property-grid {
        gap: 16px;
    }

    .gk-fomo-line {
        flex-direction: column;
        gap: 8px;
    }

    .gk-neighborhood-card {
        width: 240px;
    }

    .gk-floating-cta {
        bottom: 16px;
        right: 16px;
        left: 16px;
        padding: 12px 20px;
    }

    .gk-footer-tagline { font-size: var(--text-sm); }
}

/* ================================================================
   Print styles
   ================================================================ */
@media print {
    .gk-header,
    .gk-hero,
    .gk-sold-ticker,
    .gk-floating-cta,
    .gk-cta-banner {
        display: none !important;
    }

    .gk-property-card { break-inside: avoid; }
    body { font-size: 12pt; }
}

/* ================================================================
   Utility classes
   ================================================================ */
.gk-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 sections keep their own vertical rhythm */
section.gk-categories-section,
section.gk-featured-section,
section.gk-neighborhoods-section,
section.gk-why-section,
section.gk-cta-banner {
    padding-block: clamp(48px, 6vw, 80px);
}

/* ================================================================
   Forced Colors Mode (Windows High Contrast, etc.)
   ================================================================ */
@media (forced-colors: active) {
    .gk-header,
    .gk-property-card,
    .gk-category-card,
    .gk-neighborhood-card,
    .gk-why-card,
    .gk-glass-search,
    .gk-btn,
    .gk-search-tabs,
    .gk-sold-ticker,
    .gk-floating-cta,
    .gk-back-to-top,
    .gk-cta-banner,
    .gk-footer {
        border: 2px solid CanvasText;
    }

    .gk-btn-primary,
    .gk-btn-white,
    .gk-search-btn,
    .gk-floating-cta,
    .gk-cta-banner .gk-btn-white,
    .gk-back-to-top,
    .gk-fav-btn,
    .gk-nav-toggle,
    .gk-price-chip,
    .gk-badge {
        border: 2px solid CanvasText;
        forced-color-adjust: none;
    }

    .gk-sold-dot,
    .gk-badge-dot,
    .gk-hero-dot {
        background: CanvasText;
        border: 1px solid CanvasText;
    }

    .material-symbols-rounded {
        forced-color-adjust: none;
    }

    .gk-property-image img,
    .gk-neigh-img,
    .gk-hero-slider img {
        filter: none;
        opacity: 1;
    }
}