  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --green: #14402F;
    --green-dark: #0e2e21;
    --green-light: var(--gold-light);
    --green-mid: #A98220;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #faf7f2;
    --white: #ffffff;
    --gold: #A98220; --gold-light: #fef3d0;
    --ad-bg: #f3f4f6;
  }

  body {
    font-family: 'DM Sans', sans-serif;
    background: #faf7f2;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
  }

  /* HEADER */
  header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .logo { display: flex; align-items: center; text-decoration: none; }

  .about-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
  }

  .about-link:hover {
    color: var(--green);
    border-color: var(--green);
  }

  .tagline {
    font-size: 13px;
    color: var(--text-muted);
    display: none;
  }

  @media (min-width: 640px) { .tagline { display: block; } }

  /* AD LEADERBOARD */
  .ad-leaderboard {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
  }

  .ad-box {
    background: var(--ad-bg);
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
  }

  .ad-leaderboard .ad-box {
    width: 728px;
    height: 90px;
    max-width: 100%;
  }

  @media (max-width: 767px) { .ad-leaderboard { display: none; } }

  /* CITY TABS */
  .city-tabs {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
  }

  .city-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    user-select: none;
    position: relative;
    top: 1px;
  }

  .city-tab:hover { color: var(--green); }

  .city-tab.active {
    color: var(--green-dark);
    border-bottom-color: var(--gold);
  }

  .city-tab .tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
  }

  .city-tab.coming-soon {
    cursor: default;
    opacity: 0.6;
  }

  .city-tab.coming-soon:hover { color: var(--text-muted); }

  .coming-soon-badge {
    font-size: 10px;
    font-weight: 500;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  /* FILTER BAR */
  .filter-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
  }

  .filter-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .filter-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  select {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color 0.15s;
  }

  select:focus { outline: none; border-color: var(--green); }

  .result-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
  }

  /* CITY PANEL */
  .city-panel { display: none; }
  .city-panel.active { display: block; }

  /* MAIN LAYOUT */
  .main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
  }

  @media (max-width: 900px) {
    .main { grid-template-columns: 1fr; }
    .sidebar { display: none; }
  }

  /* CITY HEADER */
  .city-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
  }

  .city-header-name {
    font-family: 'Lora', serif;
    font-size: 22px;
    color: var(--green-dark);
  }

  .city-header-count {
    font-size: 13px;
    color: var(--text-muted);
    background: var(--gold-light);
    color: var(--green-dark);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
  }

  /* COURSE LIST */
  .course-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* COURSE CARD */
  .course-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }

  .course-card:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 12px rgba(45, 106, 79, 0.08);
  }

  .course-card.hidden { display: none; }

  .card-left { flex: 1; min-width: 0; }

  .course-name {
    font-family: 'Lora', serif;
    font-size: 17px;
    color: var(--green-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .course-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .course-location::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
  }

  .course-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 5px;
  }

  .card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
  }

  .price-range {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
  }

  .book-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--gold);
    color: var(--green-dark);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s;
  }

  .book-btn:hover { background: #8a6a18; }
  .book-btn::after { content: '→'; font-size: 13px; }

  /* IN-FEED AD */
  .infeed-ad {
    background: var(--white);
    border: 1px dashed #d1d5db;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .infeed-ad .ad-box { width: 100%; height: 90px; }

  /* NO RESULTS */
  .no-results {
    display: none;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 15px;
  }

  .no-results.visible { display: block; }

  /* COMING SOON PANEL */
  .coming-soon-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 56px 32px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .coming-soon-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
  }

  .coming-soon-panel h2 {
    font-family: 'Lora', serif;
    font-size: 24px;
    color: var(--green-dark);
    margin-bottom: 10px;
  }

  .coming-soon-panel p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 380px;
    margin: 0 auto 24px;
  }

  .notify-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .notify-input {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 9px 14px;
    width: 220px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
  }

  .notify-input:focus { border-color: var(--green); }

  .notify-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background 0.15s;
  }

  .notify-btn:hover { background: var(--green-dark); }

  .notify-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
  }

  /* SIDEBAR */
  .sidebar {
    position: sticky;
    top: 84px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .sidebar .ad-box {
    width: 100%;
    height: 250px;
    border-radius: 8px;
  }

  .sidebar-note {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.5;
  }

  /* HERO */
  .hero {
    background: var(--green-dark);
    padding: 56px 24px 52px;
    text-align: center;
  }

  .hero-headline {
    font-family: 'Lora', serif;
    font-size: clamp(22px, 3.2vw, 42px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 28px;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subline {
    color: var(--gold);
    font-style: italic;
  }

  .hero-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--green-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s;
    margin-bottom: 24px;
  }

  .hero-cta:hover { background: #8a6a18; }

  .hero-stats {
    font-size: 13px;
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.02em;
  }

  /* RECENTLY UPDATED BADGE */
  .updated-badge {
    font-size: 10px;
    font-weight: 500;
    color: var(--green);
    background: var(--gold-light);
    padding: 2px 7px;
    border-radius: 20px;
    display: inline-block;
    letter-spacing: 0.01em;
  }

  .distance-badge {
    font-size: 10px;
    font-weight: 500;
    color: var(--green-dark);
    background: #e0f2fe;
    padding: 2px 7px;
    border-radius: 20px;
    margin-top: 4px;
    margin-left: 4px;
    display: none;
    letter-spacing: 0.01em;
  }

  .near-me-active .distance-badge { display: inline-block; }

  /* PRICE RANGE CALCULATOR */
  .price-calc {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .price-calc-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .price-calc input {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    width: 72px;
    transition: border-color 0.15s;
    appearance: none;
  }

  .price-calc input:focus { outline: none; border-color: var(--green); }

  .price-calc-sep {
    font-size: 13px;
    color: var(--text-muted);
  }

  /* NEAR ME BUTTON */
  .near-me-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    background: var(--white);
    border: 1px solid var(--green);
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }

  .near-me-btn:hover { background: var(--gold-light); }
  .near-me-btn.active { background: var(--green); color: var(--white); }

  /* NAV LINKS */
  .nav-links { display: flex; gap: 8px; }
  .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
  }
  .nav-link:hover { color: var(--green); border-color: var(--green); }
  .nav-link.active { color: var(--green); border-color: var(--green); background: var(--gold-light); }

  /* FOOTER */
  footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 48px;
    background: var(--white);
  }

  footer a {
    color: var(--green);
    text-decoration: none;
  }

  footer a:hover { text-decoration: underline; }

  /* NAV DIVIDER — separates market links from utility links */
  .nav-divider {
    display: inline-block;
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
    vertical-align: middle;
  }

  /* MARKET NAV LINKS — gold accent to distinguish from utility links */
  .nav-link--market {
    color: var(--green);
    border-color: var(--gold);
    background: var(--gold-light);
  }
  .nav-link--market:hover {
    color: var(--green-dark);
    border-color: var(--gold);
    background: #fde99a;
  }
  .nav-link--market.active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
  }

  /* MARKET HERO — pin icon alignment */
  .market-hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .market-hero__pin {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--gold);
  }

  /* FILTER BAR — text inputs match select styling */
  .filter-bar input[type="number"] {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    width: 76px;
    transition: border-color 0.15s;
    appearance: none;
  }
  .filter-bar input[type="number"]:focus {
    outline: none;
    border-color: var(--green);
  }
  .filter-bar input[type="number"]::placeholder {
    color: var(--text-muted);
  }

  /* MARKET PAGE LAYOUT — centered, no sidebar for now */
  .market-main {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 24px 80px;
  }

  /* FILTER BAR — centered layout */
  .filter-inner--centered {
    justify-content: center;
  }

  /* MOBILE HEADER — scrollable nav, fixed logo */
  @media (max-width: 768px) {
    header {
      padding: 0 16px;
      gap: 12px;
      overflow: hidden;
    }
    .logo {
      flex-shrink: 0;
    }
    .nav-scroll-wrapper {
      flex: 1;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .nav-scroll-wrapper::-webkit-scrollbar {
      display: none;
    }
    .nav-links {
      display: flex;
      gap: 8px;
      flex-wrap: nowrap;
      padding-right: 8px;
    }
  }

  /* MOBILE FILTER BAR — stack rows, left-align, prevent overflow */
  @media (max-width: 640px) {
    .filter-inner,
    .filter-inner--centered {
      justify-content: flex-start;
      flex-wrap: wrap;
    }
    .filter-group {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 2px;
    }
    .filter-group::-webkit-scrollbar {
      display: none;
    }
    select {
      font-size: 12px;
      padding: 6px 22px 6px 8px;
    }
    .filter-bar input[type="number"] {
      font-size: 12px;
      padding: 6px 8px;
      width: 64px;
      color: var(--text);
    }
    .near-me-btn {
      font-size: 12px;
      padding: 6px 10px;
    }
  }

  /* FEATURED NAV LINK (All SC Courses) — green pill */
  .nav-link--featured {
    background: var(--green) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    border: 2px solid var(--gold) !important;
    transition: background 0.15s;
  }
  .nav-link--featured:hover {
    background: var(--green-dark) !important;
    color: var(--white) !important;
  }
  .nav-link--featured.active {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    border: 2px solid var(--gold) !important;
  }

  /* NAV DIVIDER */
  .nav-divider {
    display: inline-block;
    width: 1px;
    height: 18px;
    background: var(--border);
    margin: 0 4px;
    align-self: center;
    flex-shrink: 0;
  }

  /* MARKET GROUP HEADERS (sc-golf page) */
  .market-group {
    margin-bottom: 8px;
  }

  .market-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 4px;
  }

  .market-group-header a {
    font-size: 15px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
  }

  .market-group-header a:hover {
    text-decoration: underline;
  }

  .market-group-count {
    font-size: 12px;
    color: var(--text-muted);
  }

  /* RADIUS SLIDER */
  .radius-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .radius-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 44px;
    text-align: right;
  }

  #radius-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    cursor: pointer;
  }

  #radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
  }

  #radius-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    border: none;
  }

  /* CALL-TO-BOOK COURSE CARDS */
  .book-btn--website {
    background: var(--white);
    color: var(--green);
    border: 1px solid var(--green);
  }
  .book-btn--website:hover { background: var(--gold-light); }
  .book-btn--website::after { content: '→'; font-size: 13px; }

  .course-phone {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    text-align: right;
  }
