/* thecashflowagent.com - shared styles for /blog/ (media-scope preserved) */

:root {
    --navy: #264266;
    --navy-dark: #1a2d44;
    --navy-mid: #2e5080;
    --charcoal: #5B5C5F;
    --white: #ffffff;
    --off-white: #F8F9FB;
    --light-grey: #F0F4F8;
    --border: #E2E8F0;
    --text-muted: #8A9BB0;
    --green: #2D7A4F;
    --red: #C0392B;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy-dark);
    background: var(--white);
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    height: 68px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-logo {
    display: flex;
    flex-direction: column;
  }

  .nav-logo-main {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1.1;
  }

  .nav-logo-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
  }

  .nav-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
  }

  .nav-links a:hover { color: var(--white); }

  .nav-cta {
    background: var(--white);
    color: var(--navy) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: opacity 0.2s !important;
  }

  .nav-cta:hover { opacity: 0.9; }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
  }

  /* Background slideshow */
  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  .hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
  }

  .hero-bg-slide.active { opacity: 1; }

  .hero-bg-slide-1 {
    background-image: url('images/img00.webp');
  }

  .hero-bg-slide-2 {
    background-image: url('images/img01.jpg');
  }

  /* Dark overlay so text stays readable */
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      135deg,
      rgba(26,45,68,0.82) 0%,
      rgba(38,66,102,0.70) 50%,
      rgba(26,45,68,0.78) 100%
    );
    z-index: 1;
  }

  .hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease both;
  }

  .hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    color: var(--white);
    line-height: 1.12;
    max-width: 780px;
    margin-bottom: 24px;
    animation: fadeUp 0.8s ease 0.1s both;
  }

  .hero-sub {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255,255,255,0.62);
    max-width: 580px;
    line-height: 1.75;
    margin-bottom: 40px;
    font-weight: 300;
    animation: fadeUp 0.8s ease 0.2s both;
  }

  .hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.3s both;
  }

  .btn-primary {
    background: var(--white);
    color: var(--navy);
    padding: 14px 28px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
  }

  .btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }

  .btn-outline {
    border: 1.5px solid rgba(255,255,255,0.35);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    display: inline-block;
  }

  .btn-outline:hover { border-color: rgba(255,255,255,0.7); transform: translateY(-1px); }

  /* STATS BAR */
  .stats-bar {
    background: var(--navy-dark);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  .stat-item {
    padding: 32px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.07);
  }

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

  .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  /* SECTIONS */
  section { padding: 96px 5%; }

  .section-inner {
    max-width: 1100px;
    margin: 0 auto;
  }

  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 12px;
    font-weight: 500;
  }

  .section-title {
    font-size: clamp(28px, 3.5vw, 44px);
    color: var(--navy-dark);
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .section-sub {
    font-size: 16px;
    color: var(--charcoal);
    line-height: 1.75;
    max-width: 580px;
    font-weight: 300;
  }

  /* LISTINGS */
  .listings { background: var(--off-white); }

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

  .listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .listing-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
  }

  .listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(38,66,102,0.1);
  }

  .listing-img {
    height: 200px;
    background: linear-gradient(135deg, #c9dce8, #a8c4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .listing-img img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover; }

  .listing-img-2 { background: linear-gradient(135deg, #b8d0e0, #92b8cc); }
  .listing-img-3 { background: linear-gradient(135deg, #d0e4ef, #b0ccde); }

  .listing-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
    letter-spacing: 0.05em;
  }

  .listing-cap {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--green);
    color: var(--white);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
  }

  .listing-body { padding: 20px; }

  .listing-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
  }

  .listing-address {
    font-size: 13px;
    color: var(--charcoal);
    margin-bottom: 12px;
  }

  .listing-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .listing-detail { display: flex; align-items: center; gap: 4px; }

  .view-all-link {
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--navy);
    padding-bottom: 2px;
    transition: opacity 0.2s;
  }

  .view-all-link:hover { opacity: 0.7; }

  /* LIVE ANYWHERE */
  .strategy { background: var(--white); }

  .strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 64px;
  }

  .strategy-steps { display: flex; flex-direction: column; gap: 0; }

  .strategy-step {
    display: flex;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
  }

  .strategy-step:last-child { border-bottom: none; }

  .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    font-family: 'Playfair Display', serif;
  }

  .step-content h4 {
    font-size: 17px;
    color: var(--navy-dark);
    margin-bottom: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
  }

  .step-content p {
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.7;
    font-weight: 300;
  }

  /* CLIENT STORY */
  .story-card {
    background: var(--off-white);
    border-radius: 10px;
    padding: 36px;
    border: 1px solid var(--border);
  }

  .story-label {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 16px;
  }

  .story-quote {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--navy-dark);
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
  }

  .story-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .story-num-item {
    background: var(--white);
    border-radius: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border);
  }

  .story-num-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .story-num-val {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 500;
  }

  .val-red { color: var(--red); }
  .val-navy { color: var(--navy); }
  .val-green { color: var(--green); }

  .story-footer {
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.7;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-weight: 300;
  }

  /* ABOUT */
  .about { background: var(--light-grey); }

  .about-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-photo {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--navy);
    position: relative;
  }

  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .about-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #264266, #1a2d44);
    color: rgba(255,255,255,0.2);
    font-size: 80px;
    font-family: 'Playfair Display', serif;
  }

  .about-content h2 {
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--navy-dark);
  }

  .about-content p {
    font-size: 15px;
    color: var(--charcoal);
    line-height: 1.8;
    margin-bottom: 16px;
    font-weight: 300;
  }

  .about-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
  }

  .credential {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 3px;
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    font-weight: 500;
  }

  /* VALUATION */
  .valuation {
    background: var(--navy);
    text-align: center;
    padding: 96px 5%;
  }

  .valuation .section-eyebrow { color: rgba(255,255,255,0.45); }
  .valuation .section-title { color: var(--white); margin: 0 auto 12px; }
  .valuation .section-sub { color: rgba(255,255,255,0.6); margin: 0 auto 40px; }

  .valuation-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
  }

  .valuation-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 14px;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    color: var(--navy-dark);
    background: var(--white);
  }

  .valuation-btn {
    background: var(--navy-dark);
    color: var(--white);
    border: none;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.03em;
    transition: background 0.2s;
    white-space: nowrap;
  }

  .valuation-btn:hover { background: #111f2e; }

  .valuation-note {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-top: 14px;
  }

  /* QUIZ */
  .quiz { background: var(--off-white); }

  .quiz-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .quiz-card {
    background: var(--white);
    border-radius: 10px;
    padding: 48px;
    border: 1px solid var(--border);
    margin-top: 48px;
    text-align: left;
  }

  .quiz-step-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .quiz-step-item:last-child { border-bottom: none; }

  .quiz-q-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .quiz-q-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy-dark);
    margin-bottom: 4px;
  }

  .quiz-q-options {
    font-size: 12px;
    color: var(--text-muted);
  }

  .quiz-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
  }

  .quiz-option {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--charcoal);
    background: var(--off-white);
    cursor: pointer;
    transition: all 0.15s;
  }

  .quiz-option:hover, .quiz-option.active {
    border-color: var(--navy);
    color: var(--navy);
    background: #e8eef5;
  }

  .quiz-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
  }

  .quiz-input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    color: var(--navy-dark);
    outline: none;
    transition: border-color 0.2s;
  }

  .quiz-input:focus { border-color: var(--navy); }

  .quiz-submit {
    width: 100%;
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin-top: 20px;
    transition: background 0.2s;
    letter-spacing: 0.02em;
  }

  .quiz-submit:hover { background: var(--navy-dark); }

  /* NEIGHBORHOODS */
  .neighborhoods { background: var(--white); }

  .nbhd-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
  }

  .nbhd-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: block;
  }

  .nbhd-card:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
  }

  .nbhd-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--navy-dark);
    margin-bottom: 8px;
  }

  .nbhd-desc {
    font-size: 13px;
    color: var(--charcoal);
    line-height: 1.65;
    font-weight: 300;
  }

  .nbhd-link {
    font-size: 12px;
    color: var(--navy);
    font-weight: 500;
    margin-top: 14px;
    display: block;
  }

  /* TESTIMONIALS */
  .testimonials { background: var(--light-grey); }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .testimonial-card {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid var(--border);
  }

  .testimonial-stars {
    color: #F4A623;
    font-size: 14px;
    margin-bottom: 14px;
    letter-spacing: 2px;
  }

  .testimonial-text {
    font-size: 14px;
    color: var(--charcoal);
    line-height: 1.75;
    margin-bottom: 20px;
    font-weight: 300;
    font-style: italic;
  }

  .testimonial-author {
    font-size: 13px;
    font-weight: 500;
    color: var(--navy-dark);
  }

  .testimonial-location {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
  }

  /* MARKET DATA */
  .market { background: var(--white); }

  .market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  .market-card {
    background: var(--off-white);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid var(--border);
    text-align: center;
  }

  .market-num {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--navy);
    margin-bottom: 4px;
  }

  .market-label {
    font-size: 12px;
    color: var(--charcoal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .market-change {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
  }

  .change-up { color: var(--green); }
  .change-down { color: var(--red); }

  /* FOOTER */
  footer {
    background: var(--navy-dark);
    padding: 60px 5% 32px;
  }

  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 32px;
  }

  .footer-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 6px;
  }

  .footer-brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 300;
  }

  .footer-contact {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 2;
  }

  .footer-contact a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-contact a:hover { color: var(--white); }

  .footer-col-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 16px;
    font-weight: 500;
  }

  .footer-links { list-style: none; }

  .footer-links li { margin-bottom: 10px; }

  .footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-links a:hover { color: var(--white); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-legal {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    line-height: 1.6;
  }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }


  /* OPPORTUNITY CARDS */
  .opportunity-card { cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; }
  .opportunity-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(38,66,102,0.15); }
  .unlock-btn {
    width: 100%; margin-top: 12px; background: var(--navy);
    color: white; border: none; padding: 10px; border-radius: 5px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: background 0.2s;
  }
  .unlock-btn:hover { background: var(--navy-dark); }

  /* FILTER BAR */
  .filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
  .filter-btn {
    padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border);
    background: transparent; font-size: 12px; font-weight: 500;
    color: var(--charcoal); cursor: pointer; transition: all 0.15s;
    font-family: 'DM Sans', sans-serif;
  }
  .filter-btn:hover { border-color: var(--navy); color: var(--navy); }
  .active-filter { background: var(--navy); color: white; border-color: var(--navy); }

  /* SOLD CARDS */
  .sold-card {
    background: rgba(255,255,255,0.06); border-radius: 10px;
    padding: 24px; border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.2s;
  }
  .sold-card:hover { background: rgba(255,255,255,0.09); }
  .sold-badge-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .sold-badge {
    font-size: 10px; font-weight: 500; padding: 3px 10px;
    background: #2D7A4F; color: white; border-radius: 3px;
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .sold-days { font-size: 11px; color: rgba(255,255,255,0.4); }
  .sold-price { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 500; color: white; margin-bottom: 4px; }
  .sold-address { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 2px; }
  .sold-type { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.06em; }
  .sold-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 16px 0; }
  .sold-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sold-stat-label { font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
  .sold-stat-val { font-size: 15px; font-weight: 500; color: white; }

  /* FUNNEL OVERLAY */
  #funnel-overlay { display: none; }
  #funnel-overlay.open { display: flex !important; }

  @media (max-width: 600px) {
    .sold-stats { grid-template-columns: 1fr 1fr; }
  }


  .yt-wrap { position:relative; aspect-ratio:16/9; border-radius:10px; overflow:hidden; background:#000; cursor:pointer; }
  .yt-thumb { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
  .yt-play-btn {
    position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:72px; height:72px; border-radius:50%;
    background:rgba(38,66,102,0.92); border:3px solid rgba(255,255,255,0.8);
    display:flex; align-items:center; justify-content:center;
    transition:transform 0.2s, background 0.2s;
  }
  .yt-wrap:hover .yt-play-btn { transform:translate(-50%,-50%) scale(1.1); background:#264266; }
  .yt-iframe { position:absolute; inset:0; width:100%; height:100%; border:none; display:none; }
  .yt-label { position:absolute; bottom:16px; left:50%; transform:translateX(-50%);
    font-size:12px; color:rgba(255,255,255,0.7); background:rgba(0,0,0,0.5);
    padding:4px 12px; border-radius:20px; white-space:nowrap; pointer-events:none; }

  /* MOBILE */
  @media (max-width: 900px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .listings-grid { grid-template-columns: 1fr; }
    .strategy-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { aspect-ratio: 4/3; max-width: 400px; }
    .nbhd-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .market-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .quiz-contact { grid-template-columns: 1fr; }
  }

  @media (max-width: 600px) {
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .nbhd-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .valuation-form { flex-direction: column; border-radius: 6px; }
    .valuation-input { border-radius: 5px 5px 0 0; }
    .valuation-btn { border-radius: 0 0 5px 5px; }
    .story-numbers { grid-template-columns: 1fr; }
    .quiz-card { padding: 28px 20px; }
  }

@media print {
nav, #sticky-cta, .filter-bar, .opportunity-card .card-overlay,
    #drought-modal, #salmon-modal, video, iframe, .yt-wrap { display: none !important; }
    body { font-family: Georgia, serif; color: #000; background: #fff; font-size: 12pt; }
    a { color: #000; text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 10pt; }
    .section-inner { max-width: 100% !important; padding: 12pt 0 !important; }
    h1, h2, h3 { color: #000; page-break-after: avoid; }
    img { max-width: 100% !important; page-break-inside: avoid; }
    .sold-card, .listing-card { border: 1pt solid #ccc !important; margin-bottom: 12pt; padding: 8pt; }
    footer { border-top: 1pt solid #000; padding-top: 8pt; font-size: 10pt; }
    @page { margin: 2cm; }
}

/* WCAG 2.5.5 — minimum 44x44px tap targets on mobile */
    @media (max-width: 768px) {
      a, button, [role="button"], input[type="submit"],
      .btn-primary, .btn-secondary, .filter-btn, .listing-card {
        min-height: 44px;
        min-width: 44px;
      }
      .nav-link { padding: 12px 8px !important; }
      .filter-btn { padding: 10px 16px !important; }
    }

@media(max-width:768px){
  .blog-featured { grid-template-columns:1fr !important; }
  .blog-grid { grid-template-columns:1fr !important; }
  #blog .section-inner > div:first-child { flex-direction:column; align-items:flex-start; }
}

@media(max-width:768px){#sticky-cta{display:block!important;}}

.blog-body p { margin-bottom: 18px; }
.blog-body ul li { color: #5B5C5F; font-size: 15px; line-height: 1.7; }
@media(max-width:600px){
  .blog-body { padding: 24px 20px !important; }
  #blog-post-1 > div > div:last-child > div { grid-template-columns: 1fr !important; }
}