/* area.css: the area pages (/alberta and /alberta/<slug>). Loaded after blog.css,
   which gives the header, buttons, descriptor line and the closing band. (owner, 2026-12-03) */
.area-hero { padding: 44px 24px 150px;
  background:
    linear-gradient(180deg, rgba(16, 14, 9, 0.6) 0%, rgba(16, 14, 9, 0.46) 50%, rgba(23, 19, 13, 0.9) 88%, #17130d 100%),
    var(--blog-photo) center 55% / cover no-repeat #16130d; }
.area-hero-in { max-width: 980px; margin: 0 auto; }
.area-crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 44px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.86); }
.area-crumbs a { color: #fff; text-underline-offset: 3px; }
.area-crumbs a:hover { color: var(--bl-gold); }
.area-hero h1 { margin: 0 0 16px; max-width: 860px; font-size: clamp(34px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.area-hero h1 span { color: var(--bl-gold); }
.area-hero .blog-lede { margin: 0 0 28px; max-width: 640px; }

.area-body { position: relative; max-width: 1028px; margin: -92px auto 0; padding: 0 24px 84px; display: grid; gap: 24px; }
.area-sheet { padding: 40px 44px; border-radius: 28px; background: #fffdf8; color: #2a251c; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45); font-size: 18px; line-height: 1.65; }
.area-sheet h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: #17130e; }
.area-sheet h3 { margin: 28px 0 12px; font-size: 20px; font-weight: 700; color: #17130e; }
.area-sheet p { margin: 0 0 16px; }
.area-sheet a { color: #8b6914; }
.area-source { margin: 22px 0 0 !important; font-size: 15px; line-height: 1.55; color: #6b6252; }
.area-pending h2 { margin-bottom: 8px; }
.area-pending p { margin: 0; color: #4a4437; }

.area-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 26px; }
.area-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 18px; background: #f6efe0; border: 1px solid #e6dcc7; }
.area-tile dt { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b6252; }
.area-tile dd { margin: 0; font-size: 29px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; color: #17130e; font-variant-numeric: tabular-nums; }
.area-tile span { font-size: 14.5px; line-height: 1.4; color: #6b6252; }
.area-tile:first-child { background: #17130e; border-color: #17130e; }
.area-tile:first-child dt, .area-tile:first-child span { color: #cdbf9f; }
.area-tile:first-child dd { color: #f0d395; }

.area-table-wrap { overflow-x: auto; margin: 0 0 8px; }
.area-table { width: 100%; border-collapse: collapse; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.area-table caption { text-align: left; padding: 0 0 10px; font-size: 20px; font-weight: 700; color: #17130e; }
.area-table th, .area-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid #e6dcc7; white-space: nowrap; }
.area-table thead th { font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #6b6252; border-bottom: 2px solid #d9cdb2; }
.area-table th:first-child { text-align: left; padding-left: 0; white-space: normal; }
.area-table tbody th { font-weight: 700; color: #17130e; }
.area-table tbody tr:last-child th, .area-table tbody tr:last-child td { border-bottom: 0; }

.area-chart { margin: 26px 0 0; }
.area-chart figcaption { margin-bottom: 6px; font-size: 20px; font-weight: 700; color: #17130e; }
.area-chart svg { display: block; width: 100%; height: auto; }
.area-chart-legend { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 10px 0 0 !important; font-size: 15px; font-weight: 600; color: #4a4437; }
.area-chart-legend span { display: inline-flex; align-items: center; gap: 9px; }
.area-chart-legend i { display: inline-block; width: 30px; height: 0; border-top: 3px solid #b8862e; }
.area-chart-legend i.prev { border-top: 3px dashed #8a8272; }
.area-chart-note { margin: 10px 0 0 !important; font-size: 16.5px; color: #2a251c; }
/* the charts' property-type switch: radio buttons and CSS only, no script */
.area-charts { margin: 34px 0 0; }
.area-charts-h { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: #17130e; }
.area-types { display: flex; flex-wrap: wrap; gap: 10px; }
.area-type-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.area-type { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid #d9cdb3; border-radius: 999px; background: #fffdf8; font-size: 17px; font-weight: 700; color: #2a251c; cursor: pointer; }
.area-type:hover { border-color: #b8862e; }
.area-type-in:checked + .area-type { background: #17130e; border-color: #17130e; color: #fffdf8; }
.area-type-in:focus-visible + .area-type { outline: 3px solid #b8862e; outline-offset: 3px; }
.area-panel { display: none; }
.area-charts:has(#areaT-house:checked) .area-panel[data-t="house"],
.area-charts:has(#areaT-semi:checked) .area-panel[data-t="semi"],
.area-charts:has(#areaT-town:checked) .area-panel[data-t="town"],
.area-charts:has(#areaT-condo:checked) .area-panel[data-t="condo"],
.area-charts:has(#areaT-all:checked) .area-panel[data-t="all"] { display: block; }
.area-chart-m { font: 600 14px Inter, system-ui, sans-serif; fill: #6b6252; }
.area-chart-v { font: 800 16px Inter, system-ui, sans-serif; fill: #17130e; }

.area-asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.area-ask { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; border-radius: 18px 18px 6px 18px; text-decoration: none;
  font-size: 17.5px; font-weight: 600; line-height: 1.4; color: #1b150c !important; background: linear-gradient(135deg, #f3dca6, #d9b56a); transition: filter 0.15s, transform 0.15s; }
.area-ask:hover { filter: brightness(1.05); transform: translateX(3px); }
.area-ask b { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #17130e; color: #f0d395; font-size: 17px; }
.area-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.area-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 600;
  color: #2a251c; background: #f6efe0; border: 1px solid #e0d4ba; transition: border-color 0.15s, background 0.15s; }
.area-chips a:hover { border-color: #b8862e; background: #fbf3df; }
.area-find { display: block; margin: 0 0 16px; }
.area-find span { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 700; color: #17130e; }
.area-find input { width: 100%; min-height: 52px; padding: 0 18px; border: 2px solid #d9cdb3; border-radius: 14px; background: #fffdf8; font: 500 17px Inter, system-ui, sans-serif; color: #17130e; }
.area-find input:focus { outline: 3px solid #b8862e; outline-offset: 2px; border-color: #b8862e; }
.area-find-none { font-weight: 600; }
.area-hoods { max-height: 420px; overflow-y: auto; padding: 4px; }
.area-hoods li[hidden] { display: none; }
.area-cta .blog-btn { margin: 6px 0 22px; }
.area-near { padding: 8px 4px 0; }
.area-near h2 { margin: 0 0 14px; font-size: 22px; color: #fff; }
.area-near .area-chips a { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.area-near .area-chips a:hover { border-color: var(--bl-gold); background: rgba(255, 255, 255, 0.14); }
.area-ask:focus-visible, .area-chips a:focus-visible, .area-card:focus-visible, .area-crumbs a:focus-visible { outline: 3px solid var(--bl-gold); outline-offset: 3px; }

/* The index: a photo card per municipality */
.area-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.area-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); transition: transform 0.18s, box-shadow 0.18s; }
.area-card:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 0 2px var(--bl-gold); }
.area-card-photo, .area-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.area-card-photo img { transition: transform 0.5s; }
.area-card:hover .area-card-photo img { transform: scale(1.05); }
.area-card-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 22px;
  background: linear-gradient(180deg, rgba(16, 14, 9, 0) 30%, rgba(16, 14, 9, 0.9) 100%); }
.area-card-region { font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bl-gold); }
.area-card-name { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.area-card-stat { font-size: 15.5px; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.area-more-note { margin: 28px 0 0; text-align: center; font-size: 17px; color: var(--bl-muted); }
.area-more-note a { color: var(--bl-gold); }

@media (max-width: 860px) {
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area-sheet { padding: 32px 28px; }
}
@media (max-width: 640px) {
  .area-hero { padding: 28px 16px 120px; }
  .area-crumbs { margin-bottom: 30px; }
  .area-body { margin-top: -84px; padding: 0 10px 56px; gap: 16px; }
  .area-sheet { padding: 28px 20px; border-radius: 22px; font-size: 17.5px; }
  .area-sheet h2 { font-size: 24px; }
  .area-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .area-tile { padding: 14px 14px; }
  .area-tile dd { font-size: 25px; }
  .area-tile:first-child { grid-column: 1 / -1; }
  .area-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .area-card { border-radius: 16px; }
  .area-card-text { padding: 14px; }
  .area-card-name { font-size: 21px; }
  .area-card-stat { font-size: 14px; }
  /* the table becomes one block per property type: every number keeps its label */
  .area-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .area-table, .area-table caption, .area-table tbody, .area-table tr, .area-table th, .area-table td { display: block; }
  .area-table tr { padding: 12px 0; border-bottom: 1px solid #e6dcc7; }
  .area-table tbody tr:last-child { border-bottom: 0; }
  .area-table th, .area-table td { padding: 3px 0; border: 0; white-space: normal; }
  .area-table tbody th { font-size: 18px; margin-bottom: 4px; }
  .area-table td { display: flex; justify-content: space-between; gap: 16px; text-align: right; }
  .area-table td::before { content: attr(data-l); font-weight: 600; color: #6b6252; text-align: left; }
  .area-chart-m { font-size: 20px; } .area-chart-v { font-size: 22px; }
  .area-ask { font-size: 16.5px; padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) { .area-card, .area-card-photo img, .area-ask { transition: none; } .area-card:hover, .area-ask:hover { transform: none; } .area-card:hover .area-card-photo img { transform: none; } }
/* the label on a chart point (area.js) */
.area-tip { position: absolute; z-index: 20; max-width: 280px; padding: 8px 12px; border-radius: 10px; background: #17130e; color: #fffdf8; font: 600 15px/1.35 Inter, system-ui, sans-serif; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28); pointer-events: none; }
.area-chart svg { touch-action: pan-y; }
.area-chart svg circle.is-on { stroke-width: 4; }
