/* ═══════════════════════════════════════════════════════════════════════════
   pages.css — shared components for the secondary pages
   (listing.html, book.html, services.html, about.html, contact.html).
   Loads AFTER css/linda.css and only uses its tokens — no new palette.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── page opener (mirrors listings.html) ────────────────────────────────── */
.page-head { background: var(--cream); padding: clamp(148px, 20vw, 218px) 0 clamp(46px, 6vw, 76px); }
.page-head .display { margin-top: 18px; }
.page-head .lede { margin-top: 22px; }
.page-head.tight { padding-bottom: clamp(26px, 4vw, 44px); }

/* ── breadcrumb ─────────────────────────────────────────────────────────── */
.crumb { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.crumb a { color: var(--orange-deep); transition: color 0.25s; }
.crumb a:hover { color: var(--orange); }
.crumb .sep { opacity: 0.5; }

/* ── loading shimmer (same recipe as listings.html) ─────────────────────── */
.shimmer { position: relative; overflow: hidden; background: var(--paper); border-radius: var(--r-lg); }
.shimmer::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent); animation: shim 1.3s infinite; }
@keyframes shim { to { transform: translateX(100%); } }

/* ── generic white panel ────────────────────────────────────────────────── */
.panel { background: #fff; border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 40px); box-shadow: var(--shadow-soft); }
.panel > h3 { margin-bottom: 6px; }
.panel .sub { font-size: 0.9rem; color: var(--ink-soft); }
.fine { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.55; margin-top: 14px; }

/* ── empty state (listing not found etc.) ───────────────────────────────── */
.empty-state { text-align: center; padding: clamp(36px, 6vw, 64px) 20px; }
.empty-art { width: 148px; height: 148px; margin: 0 auto 28px; border-radius: 34px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--forest), var(--forest-2)); box-shadow: var(--shadow-soft); }
.empty-art svg { width: 58%; }
.empty-state .lede { margin: 14px auto 30px; }

/* ═══ listing.html — gallery ═══ */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); gap: clamp(24px, 3.6vw, 48px); align-items: start; }
.gal-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--sand); box-shadow: var(--shadow-soft); }
.gal-hero.zoomable { cursor: zoom-in; }
.gal-hero img { width: 100%; height: 100%; object-fit: cover; }
.gal-hero .ph { position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 100%); }
.gal-hero .ph svg { width: 34%; opacity: 0.9; }
.gal-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 132px); gap: 10px;
  margin-top: 12px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.gal-thumb { border: none; padding: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--sand); cursor: pointer; opacity: 0.62; transition: opacity 0.3s, box-shadow 0.3s; }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumb:hover { opacity: 0.9; }
.gal-thumb.on { opacity: 1; box-shadow: 0 0 0 2.5px var(--orange); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center;
  background: rgba(6, 42, 31, 0.95); padding: clamp(16px, 5vw, 60px); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
.lb-btn { position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(250, 247, 240, 0.1); color: var(--cream); border: 1px solid rgba(250, 247, 240, 0.28);
  font-size: 1.15rem; line-height: 1; transition: background 0.25s, transform 0.3s var(--ease); }
.lb-btn:hover { background: rgba(242, 106, 33, 0.85); transform: scale(1.06); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; color: rgba(250, 247, 240, 0.7); }

/* ═══ listing.html — summary card ═══ */
.sum-card { position: sticky; top: 96px; }
.sum-status { display: inline-flex; padding: 7px 14px; border-radius: 999px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.sum-status.active { background: rgba(11, 61, 46, 0.08); color: var(--forest); }
.sum-status.pending { background: rgba(242, 106, 33, 0.12); color: var(--orange-deep); }
.sum-status.sold { background: var(--forest-deep); color: var(--orange-2); }
.sum-price { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 520; color: var(--forest); line-height: 1.05; }
.sum-price .was { display: block; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: 6px; }
.sold-flag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 520; line-height: 1.05; color: var(--forest-deep); }
.sold-flag::after { content: ''; flex: none; width: 44px; height: 3px; border-radius: 3px; background: var(--orange); }
.sum-addr { font-weight: 700; font-size: 1.12rem; margin-top: 14px; }
.sum-city { color: var(--ink-faint); font-size: 0.9rem; margin-top: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 16px 14px;
  margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.fact b { display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 520; color: var(--ink); line-height: 1.15; }
.fact span { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

/* share row inside the summary card — copy / text / email / native share */
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.share-row .share-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--forest); cursor: pointer;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.share-row .share-btn:hover { border-color: var(--forest); transform: translateY(-1px); }
.share-row .share-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.share-row .share-btn svg { width: 14px; height: 14px; flex: none; }
.share-row .share-btn.copied { background: var(--forest); border-color: var(--forest); color: var(--cream); }

/* sold banner inside the summary card */
.sold-banner { margin-top: 24px; border-radius: 18px; padding: 24px 24px 26px; color: var(--cream);
  background: radial-gradient(90% 80% at 85% 0%, rgba(242, 106, 33, 0.28), transparent 55%),
    linear-gradient(150deg, var(--forest) 0%, var(--forest-deep) 100%); }
.sold-banner h3 { font-size: 1.18rem; }
.sold-banner p { font-size: 0.88rem; color: rgba(250, 247, 240, 0.75); margin: 8px 0 18px; }

/* tour form inside the summary card */
.tour-form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.tour-form h3 { margin-bottom: 16px; }

/* description + features */
.desc-panel { margin-top: clamp(24px, 3.6vw, 48px); }
.desc-panel .prose p { color: var(--ink-soft); font-size: 1rem; margin-top: 14px; max-width: 66ch; }
.feat-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 24px; margin-top: 18px; }
.feat-list li { position: relative; padding-left: 24px; font-size: 0.94rem; color: var(--ink-soft); }
.feat-list li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: var(--orange); font-size: 0.78rem; }

/* calculator + neighborhood duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); margin-top: clamp(24px, 3.6vw, 48px); align-items: start; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 20px; }
.calc-out { margin-top: 8px; padding: 20px 22px; border-radius: 16px; background: rgba(11, 61, 46, 0.06);
  border: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-out b { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 520; color: var(--forest); }
.calc-out span { font-size: 0.8rem; color: var(--ink-soft); }
.map-embed { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); margin-top: 20px; }
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }

/* ═══ book.html ═══ */
.book-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 74px); align-items: start; }
.exp-list { list-style: none; margin-top: 26px; display: grid; gap: 18px; }
.exp-list li { display: flex; gap: 15px; align-items: flex-start; }
.exp-list .tick { flex: none; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(242, 106, 33, 0.16), rgba(242, 106, 33, 0.06)); color: var(--orange-deep); }
.exp-list .tick svg { width: 15px; }
.exp-list b { display: block; font-size: 0.98rem; }
.exp-list p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }
.phone-fallback { margin-top: 34px; padding: 22px 24px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.phone-fallback b { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 6px; }
.phone-fallback a { font-family: var(--serif); font-size: 1.35rem; font-weight: 520; color: var(--forest); transition: color 0.25s; }
.phone-fallback a:hover { color: var(--orange-deep); }
.phone-fallback p { font-size: 0.86rem; color: var(--ink-soft); margin-top: 4px; }

.picker { position: sticky; top: 96px; }
.picker-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.date-chips { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(84px, 1fr); gap: 10px;
  overflow-x: auto; padding: 4px; margin: 16px -4px 4px; scroll-snap-type: x proximity; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.dchip { scroll-snap-align: start; border: 1.5px solid var(--line); background: #fff; border-radius: 16px;
  padding: 12px 6px 11px; text-align: center; cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.3s var(--ease); }
.dchip:hover { border-color: var(--forest); transform: translateY(-2px); }
.dchip .dow { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.dchip .dnum { display: block; font-family: var(--serif); font-size: 1.32rem; font-weight: 520; line-height: 1.25; }
.dchip .dmon { display: block; font-size: 0.68rem; font-weight: 600; opacity: 0.65; }
.dchip.on { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.dchip.on .dow, .dchip.on .dmon { opacity: 0.75; }
.chip-sh { height: 74px; border-radius: 16px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; margin-top: 18px; }
.slot { padding: 12px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: 0.88rem; color: var(--forest); cursor: pointer;
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s; }
.slot:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }
.slot.on { background: linear-gradient(135deg, var(--orange-2), var(--orange)); border-color: var(--orange);
  color: #fff; box-shadow: 0 10px 26px rgba(242, 106, 33, 0.32); }
.slot-sh { height: 44px; border-radius: 12px; }
.picker-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 16px; }
.picker-msg { font-size: 0.94rem; color: var(--ink-soft); padding: 18px 4px 6px; }
.book-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.chosen-line { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: rgba(242, 106, 33, 0.09); color: var(--orange-deep); font-weight: 600; font-size: 0.92rem; margin-bottom: 18px; }
.chosen-line svg { flex: none; width: 16px; }

/* success + fallback states */
.success-card { text-align: center; padding: clamp(26px, 4vw, 44px) clamp(14px, 3vw, 30px); }
.success-card .check { width: 76px; height: 76px; border-radius: 999px; margin: 0 auto 22px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--forest), var(--forest-2)); color: var(--orange-2);
  box-shadow: 0 18px 44px rgba(11, 61, 46, 0.3); animation: pop 0.7s var(--ease) both; }
.success-card .check svg { width: 34px; }
@keyframes pop { 0% { transform: scale(0.45); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .success-card .check { animation: none; } }
.success-card .when { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 520; color: var(--forest); margin: 12px 0 4px; }
.success-card p { color: var(--ink-soft); font-size: 0.95rem; }
.fallback-card { text-align: center; padding: clamp(22px, 4vw, 40px) clamp(12px, 3vw, 26px); }
.fallback-card .big-tel { display: inline-block; font-family: var(--serif); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 520; color: var(--forest); margin: 14px 0 6px; }
.fallback-card .big-tel:hover { color: var(--orange-deep); }

.pkg-list { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.pkg-list li { position: relative; padding-left: 22px; font-size: 0.9rem; color: var(--ink-soft); }
.pkg-list li::before { content: '✦'; position: absolute; left: 0; top: 1px; color: var(--orange); font-size: 0.72rem; }
.tcard .pkg-btn { margin-top: 22px; padding: 13px 24px; font-size: 0.88rem; }
.pricing-line { text-align: center; margin-top: 34px; font-size: 0.9rem; color: var(--ink-soft); }
.pricing-line b { color: var(--forest); }

/* ═══ contact.html ═══ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(26px, 4.6vw, 64px); align-items: start; }
.ccards { display: grid; gap: 16px; }
.ccard { background: #fff; border-radius: 20px; padding: 22px 24px; box-shadow: var(--shadow-soft);
  display: flex; gap: 16px; align-items: flex-start; }
.ccard .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, rgba(242, 106, 33, 0.15), rgba(242, 106, 33, 0.05)); color: var(--orange-deep); }
.ccard .ico svg { width: 20px; }
.ccard b { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 5px; }
.ccard .big { font-family: var(--serif); font-size: 1.18rem; font-weight: 520; color: var(--forest); line-height: 1.25; word-break: break-word; }
a.big:hover { color: var(--orange-deep); }
.ccard p.small { font-size: 0.85rem; color: var(--ink-soft); margin-top: 3px; }
.ccard .map-embed { margin-top: 14px; }
.ccard .map-embed iframe { height: 210px; }
.ccard.stack { display: block; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hours-note { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; color: var(--forest); }
.hours-note .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--orange); box-shadow: 0 0 0 4px rgba(242, 106, 33, 0.16); }

/* ═══ about.html ═══ */
.office-card { display: flex; gap: clamp(20px, 3vw, 34px); align-items: flex-start; flex-wrap: wrap; }
.office-card .o-mono { flex: none; width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--forest), var(--forest-2)); color: var(--cream);
  font-family: var(--serif); font-size: 1.5rem; box-shadow: var(--shadow-soft); }
.office-card address { font-style: normal; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 500; line-height: 1.4; color: var(--forest); }
.office-card .o-meta { font-size: 0.9rem; color: var(--ink-soft); margin-top: 10px; }
.office-card .o-meta a { color: var(--orange-deep); font-weight: 600; }

/* ── shared responsive ──────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .detail-grid, .book-grid, .contact-grid { grid-template-columns: 1fr; }
  .sum-card, .picker { position: static; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .calc-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
