/* Take Interest · Erin preview · Attractions + lifestyle module
   ---------------------------------------------------------------
   Pairs with attractions.js. All color comes from product.css theme
   tokens (var(--...)) so it tracks light + dark automatically. No hex is
   hardcoded EXCEPT the one intentional dark band (.at-ov-head), which uses
   an explicit dark value + white text so it never goes white-on-white when
   a token flips light. Every rule is prefixed .at- to stay self-contained.

   Legibility was checked both directions:
     - body text rides --text / --text-dim on --surface / --paper
     - the one dark band sets its own #11201c base + #fff / rgba(255,255,255,*)
       text, independent of any token that flips between themes. */

/* ===== shared bits ===== */

.at-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

/* source link - quiet, token-driven */
.at-src {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  border-bottom: 1px dotted var(--border);
  padding-bottom: 1px;
}
.at-src::before { content: "↗ "; color: var(--accent); }
.at-src:hover { color: var(--accent); border-bottom-color: var(--accent); }
.at-src[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ============================================================
   BUYER-PORTAL CARD  ·  renderForZip()
   ============================================================ */

.at-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.at-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.at-card-title {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
  color: var(--text);
}
.at-weight-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--accent-deep);
  background: var(--accent-pale);
  border: 1px solid var(--border-teal);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

.at-place-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.at-place {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}
.at-place:last-child { border-bottom: none; }

.at-place-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 7px;
}
.at-place-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-pale);
  color: var(--accent);
  border: 1px solid var(--border-teal);
}
.at-place-icon svg { width: 18px; height: 18px; }
.at-place-name-wrap { min-width: 0; }
.at-place-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  line-height: 1.25;
}
.at-place-cat {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  font-weight: 600;
  margin-top: 1px;
}
.at-place-blurb {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
  margin: 0 0 9px 45px;
}

/* segment chips */
.at-seg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 0 45px;
}
.at-seg {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
}
.at-seg-on {
  color: var(--accent-deep);
  background: var(--accent-pale);
  border-color: var(--border-teal);
}
/* the source link inside a portal place sits under the blurb indent */
.at-place > .at-src { margin-left: 45px; }

.at-card-foot,
.at-empty {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dimmer);
  line-height: 1.5;
}
.at-empty {
  padding: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ============================================================
   ERIN OVERVIEW  ·  renderOverview()
   ============================================================ */

.at-overview {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* the one intentional DARK band - explicit dark value + white text so it
   never flips to white-on-white when --paper/--surface go light. */
.at-ov-head {
  background: #11201c;
  background-image:
    radial-gradient(120% 130% at 8% 0%, rgba(63,179,168,0.26), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(217,147,95,0.22), transparent 55%);
  padding: 26px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.at-ov-head .at-eyebrow { color: #67d8cb; }
.at-ov-title {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 8px;
}
.at-ov-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.80);
  max-width: 64ch;
  margin: 0;
}

/* segment filter row */
.at-ov-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.at-ov-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.at-ov-filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.at-ov-fbtn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, border-color 0.14s, transform 0.14s;
}
.at-ov-fbtn:hover {
  color: var(--text);
  border-color: var(--border-teal);
  transform: translateY(-1px);
}
.at-ov-fbtn-on {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.at-ov-fbtn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-pale);
  border-color: var(--accent);
}

/* areas grid */
.at-ov-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.at-ov-area {
  padding: 22px 24px;
  border-right: 1px solid var(--border-soft);
}
.at-ov-area:last-child { border-right: none; }

.at-ov-area-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-pale);
}
.at-ov-area-name {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
}
.at-ov-count {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dimmer);
  font-weight: 600;
  white-space: nowrap;
}

.at-ov-group { margin-bottom: 18px; }
.at-ov-group:last-child { margin-bottom: 0; }
.at-ov-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
.at-ov-group-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.at-ov-group-icon svg { width: 16px; height: 16px; }
.at-ov-group-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.at-ov-item {
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: opacity 0.18s;
}
.at-ov-item:last-child { border-bottom: none; }
.at-ov-dim { opacity: 0.34; }

.at-ov-item-line { margin-bottom: 5px; }
.at-ov-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.at-ov-segs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 2px;
}
.at-ov-seg {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-dimmer);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}
.at-ov-seg-on {
  color: var(--accent-deep);
  background: var(--accent-pale);
  border-color: var(--border-teal);
}
.at-ov-item .at-src { margin-top: 5px; }

.at-ov-foot {
  padding: 14px 28px 18px;
  font-size: 11px;
  color: var(--text-dimmer);
  letter-spacing: 0.3px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* ===== responsive ===== */

@media (max-width: 920px) {
  .at-ov-areas { grid-template-columns: 1fr; }
  .at-ov-area {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  .at-ov-area:last-child { border-bottom: none; }
}

@media (max-width: 560px) {
  .at-place-blurb,
  .at-seg-row,
  .at-place > .at-src { margin-left: 0; }
  .at-ov-head { padding: 22px 18px; }
  .at-ov-filter { padding: 14px 18px; }
  .at-ov-area { padding: 18px; }
  .at-ov-foot { padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .at-ov-fbtn,
  .at-ov-item { transition: none; }
  .at-ov-fbtn:hover { transform: none; }
}
