/* Guides, neighborhood pages and the qualifier (get-matched), restyled onto the homepage design system.
   Keeps the original content markup (gd-*, nb-*, gm-*, faq-*); loads after home.css + pages.css. */

body.article main { padding-top: 84px; }
.gd-crumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--stone); margin-bottom: 18px; }
.gd-crumb a { color: var(--ink-2); text-decoration: none; }
.gd-crumb a:hover { color: var(--accent); }
.h-display { font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -.035em; }
.gd-lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.gd-meta { margin-top: 14px; font: 500 12px var(--font-mono); letter-spacing: .06em; color: var(--stone); }

/* guide header (guides have no photo hero) */
.gd { padding: 0 0 20px; }
.gd-head { position: relative; margin: 0 0 var(--gap); padding: 44px 44px 40px; border-radius: 28px; background: var(--tile); border: 1px solid rgba(228,222,212,.7); overflow: hidden; isolation: isolate; }
.gd-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; z-index: -1; opacity: .2;
  background: repeating-conic-gradient(from 90deg at 100% 0%, var(--accent) 0deg 1.2deg, transparent 1.2deg 7.5deg);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, #000 30%, transparent 70%); mask-image: radial-gradient(circle at 100% 0%, #000 30%, transparent 70%); }

/* neighborhood hero */
.nb-hero { padding: 0 0 var(--gap); }
.nb-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--gap); align-items: stretch; }
.nb-hero-grid > div:first-child .btn { align-self: flex-start; margin-top: 22px; }
.nb-hero-grid > div:first-child { background: var(--tile); border-radius: 28px; padding: 44px; border: 1px solid rgba(228,222,212,.7); display: flex; flex-direction: column; justify-content: center; }
.nb-photo { margin: 0; position: relative; border-radius: 28px; overflow: hidden; min-height: 380px; background: var(--surface-2); }
.nb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(26,24,21,.55); color: #fffcf8; font-size: 12.5px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: var(--gap); }
.nb-stats > div { background: var(--tile); border-radius: var(--r-tile); border: 1px solid rgba(228,222,212,.7); padding: 24px 26px; box-shadow: var(--shadow-tile); }
.nb-stat-v { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.nb-stat-l { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* article body + sidebar */
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.gd-body { background: var(--tile); border-radius: 28px; border: 1px solid rgba(228,222,212,.7); padding: 44px clamp(24px, 4vw, 56px); box-shadow: var(--shadow-tile); min-width: 0; }
.gd-body > *:first-child { margin-top: 0; }
.gd-body h2 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; margin: 48px 0 16px; scroll-margin-top: 100px; }
.gd-body h3 { font: 600 19px/1.3 var(--font-body); letter-spacing: -.01em; margin: 28px 0 8px; }
.gd-body p, .gd-body li { font-size: 17px; line-height: 1.72; color: var(--ink-2); max-width: 68ch; }
.gd-body p + p { margin-top: 14px; }
.gd-body ul, .gd-body ol { padding-left: 22px; margin: 14px 0; }
.gd-body li { margin: 6px 0; }
.gd-body li::marker { color: var(--accent); }
.gd-body a:not(.btn) { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gd-body .btn { text-decoration: none; }
.gd-body strong { color: var(--ink); }
.gd-table-wrap { margin: 22px 0; overflow-x: auto; border-radius: 16px; border: 1px solid var(--border); }
.gd-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gd-table th { text-align: left; font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stone); background: var(--surface); padding: 12px 16px; }
.gd-table td { padding: 14px 16px; border-top: 1px solid var(--border); color: var(--ink-2); vertical-align: top; }
.gd-table td:first-child { font-weight: 600; color: var(--ink); }
.gd-table tr:hover td { background: rgba(242,238,232,.5); }
.gd-note { margin: 24px 0; padding: 20px 24px; border-radius: 16px; background: var(--accent-soft); border: 1px solid rgba(194,78,50,.18); }
.gd-note-k { display: block; font: 700 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #8e3520; margin-bottom: 6px; }
.gd-note p { color: #5a2a1c; margin: 0; }
.nb-inline { margin: 26px 0; border-radius: 18px; overflow: hidden; }
.nb-inline img { width: 100%; height: auto; display: block; }
.nb-inline figcaption { font-size: 13px; color: var(--stone); padding: 10px 2px 0; }
.nb-slot { margin: 44px 0 0; padding: 30px; border-radius: 20px; border: 2px dashed var(--border); }
.nb-slot h2 { margin-top: 0; }
.nb-slot .btn { margin-top: 16px; }
.gd-related, .nb-hoods { margin-top: 36px; }
.gd-related-k { font: 700 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.gd-related ul, .nb-hoods ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gd-related li, .nb-hoods li { margin: 0; max-width: none; }
.gd-related a, .nb-hoods a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .2s, transform .25s var(--ease); }
.gd-related a::after { content: "\2192"; color: var(--accent); font-weight: 400; }
.gd-related a:hover, .nb-hoods a:hover { border-color: var(--accent); transform: translateY(-2px); }
.nb-h-n { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.nb-h-p { font: 500 12.5px var(--font-body); color: var(--stone); }
.gd-aside { position: sticky; top: 96px; display: grid; gap: var(--gap); }
.gd-toc { background: var(--tile); border-radius: var(--r-tile); border: 1px solid rgba(228,222,212,.7); padding: 22px; display: grid; gap: 2px; box-shadow: var(--shadow-tile); }
.gd-toc-k { font: 700 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.gd-toc a { position: relative; display: block; padding: 8px 10px 8px 22px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
.gd-toc a::before { content: ""; position: absolute; left: 9px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--border); transition: background .2s, transform .2s; }
.gd-toc a:hover, .gd-toc a.on { background: var(--surface); color: var(--ink); }
.gd-toc a.on::before { background: var(--accent); transform: scale(1.4); }
.gd-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--dark); color: #f4efe8; border-radius: var(--r-tile); padding: 26px; }
.gd-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(194,78,50,.55), transparent 60%); }
.gd-cta h2 { color: #fffcf8; font-size: 26px; line-height: 1.1; }
.gd-cta p { color: rgba(244,239,232,.78); font-size: 14.5px; margin: 10px 0 18px; }

/* FAQ on neighborhood pages */
.faq-section { padding: 56px 0 0 !important; }
.faq-head { margin-bottom: 18px; }
.h-section { font-size: clamp(32px, 3.6vw, 48px); }
.faq-list { background: var(--tile); border-radius: 28px; border: 1px solid rgba(228,222,212,.7); padding: 8px 28px; box-shadow: var(--shadow-tile); }
.faq-item-body { padding: 0 44px 24px 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

/* get-matched qualifier */
.gm { padding-bottom: 20px; }
.gm-head { position: relative; margin-bottom: var(--gap); padding: 44px; border-radius: 28px; overflow: hidden; isolation: isolate; background: #c24e32; color: #fffcf8; }
.gm-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/hood-condesa-3.webp) center / cover; filter: grayscale(1) contrast(1.2) brightness(1.18); mix-blend-mode: multiply; opacity: .55; }
.gm-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(110,32,16,.8), rgba(110,32,16,.3)); }
.gm-head h1 { font-size: clamp(38px, 4.6vw, 62px); color: #fffcf8; max-width: 14ch; letter-spacing: -.03em; }
.gm-head p { color: rgba(255,255,255,.88); font-size: 18px; max-width: 58ch; margin-top: 16px; }
.gm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.gm-form { display: grid; gap: var(--gap); }
.gm-step { background: var(--tile); border-radius: 24px; border: 1px solid rgba(228,222,212,.7); box-shadow: var(--shadow-tile); padding: 30px; margin: 0; min-width: 0; display: grid; gap: 20px; }
.gm-step legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 4px; }
.gm-step-n { font: 700 11px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.gm-step-t { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; }
.gm-hint { font-size: 14.5px; color: var(--ink-2); max-width: 64ch; clear: both; }
.gm-field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; }
.gm-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.gm-sub { font-weight: 400; color: var(--stone); margin-left: 6px; }
.gm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-pill { position: relative; cursor: pointer; }
.gm-pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.gm-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; color: var(--ink-2); transition: all .18s; user-select: none; }
.gm-pill:hover span { border-color: var(--stone-2); color: var(--ink); }
.gm-pill input:checked + span { background: var(--fg); border-color: var(--fg); color: #fffcf8; }
.gm-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gm-input, .gm-textarea { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg); font: 400 16px var(--font-body); color: var(--ink); }
.gm-textarea { min-height: 110px; padding-top: 12px; resize: vertical; }
.gm-input:focus, .gm-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(194,78,50,.12); }
.gm-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gm-legal { font-size: 13px; color: var(--stone); max-width: 46ch; }
.gm .lead-done { background: var(--tile); border-radius: 24px; padding: 36px; }
.gm .lead-done p { margin-top: 12px; color: var(--ink-2); }
.gm-aside { position: sticky; top: 96px; background: var(--dark); color: #f4efe8; border-radius: 24px; padding: 28px; overflow: hidden; isolation: isolate; }
.gm-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 100% 0%, rgba(194,78,50,.5), transparent 60%); }
.gm-aside h2 { color: #fffcf8; font-size: 26px; margin-bottom: 14px; }
.gm-aside ol { margin: 0; padding-left: 20px; display: grid; gap: 12px; }
.gm-aside li { font-size: 14.5px; line-height: 1.55; color: rgba(244,239,232,.82); }
.gm-aside li::marker { color: #f0b9a6; font-family: var(--font-mono); }
.gm-aside-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13.5px; color: rgba(244,239,232,.7); }
.gm-aside-note strong { color: #fffcf8; }

@media (max-width: 1080px) {
  .gd-grid, .gm-grid { grid-template-columns: 1fr; }
  .gd-aside, .gm-aside { position: static; }
  .gd-aside { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nb-hero-grid { grid-template-columns: 1fr; }
  .nb-hero-grid > div:first-child, .gd-head, .gm-head { padding: 28px 22px; border-radius: 22px; }
  .nb-photo { min-height: 260px; border-radius: 22px; }
  .nb-stats { grid-template-columns: 1fr; }
  .gd-body { padding: 26px 20px; border-radius: 22px; }
  .gd-body p, .gd-body li { font-size: 16px; }
  .gd-aside { grid-template-columns: 1fr; }
  .gm-step { padding: 22px 18px; }
  .faq-list { padding: 4px 18px; }
  .faq-item-body { padding-right: 0; }
}

/* qualifier: steps number themselves so the rent-only step can hide without leaving a gap */
.gm-form { counter-reset: gmstep; }
.gm-form .gm-step:not([hidden]) { counter-increment: gmstep; }
.gm-form .gm-step-n::after { content: " " counter(gmstep, decimal-leading-zero); }
.gm-form [hidden] { display: none !important; }
