@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700&display=swap");   /* the wordmark's font (owner, 2026-12-01) */
/* ══════════════════════════════════════════════════════════════════════════
   SITE HEADER AND FOOTER, shared by the home, chat, listing and CMA pages
   (owner, 2026-11-27: "be sure to have them in the home page, CMA page, also
   in the chat page"). Moved here from listing.css so every page looks the same.

   Header:  <nav class="v3-nav pd-nav">  (home page: <header class="home-header pd-head">)
   Footer:  a class on <body> picks the kind:
              pd-footer-full  a full dark footer at the end of the page
                              (pages that scroll: home, listing, CMA)
              pd-footer-slim  a thin fixed dark bar (the chat page, which is one
                              fixed screen with the message box at the bottom)
            pages with neither class keep the old thin light bar (style3.css).
   Sizes use the text-scale variables where a page defines them.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Header ── */
/* With the ask box the bar is taller: two rows on a phone (links, then the box) */
:root:has(.pd-nav .pd-nav-ask) { --nav-h: 104px; }
@media screen and (min-width: 769px) { :root:has(.pd-nav .pd-nav-ask) { --nav-h: 64px; } }

.v3-nav.pd-nav { flex-wrap: wrap; align-content: center; gap: 6px 14px; padding: 0 14px; height: var(--nav-h);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 240, 0.97)); border-bottom: 0;
  box-shadow: 0 1px 0 rgba(198, 161, 91, 0.28), 0 10px 30px -18px rgba(139, 105, 20, 0.35); }
.v3-nav.pd-nav::after, .home-header.pd-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #d4af6f 18%, #b18b46 50%, #d4af6f 82%, transparent); opacity: .75; pointer-events: none; }
.pd-nav .brand { display: inline-flex; align-items: center; gap: 9px; padding: 4px 6px; text-shadow: none; background: none !important; }
/* the wordmark: same as the home page's (bold, dark, "AI" always red) */
.pd-nav-word { font-family: 'Inter', system-ui, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #1a1a1a; white-space: nowrap; }
.pd-nav-word sup { font-size: 0.55em; font-weight: 700; letter-spacing: 0; margin-left: 1px; color: #dc2626; }
.pd-nav .nav-links { display: none; }
.pd-nav .nav-user { margin: 0 0 0 auto; gap: 2px; }
.pd-nav .nav-user-link, .pd-nav .btn-nav-logout { font-family: 'Inter', system-ui, sans-serif; font-size: var(--t-label, 15px); font-weight: 600; padding: 7px 11px; border-radius: 99px; }
.pd-nav .nav-user-link { color: #5d5850; }
.pd-nav .nav-user-link:hover { color: #8B6914; background: #fbf3df; }
.pd-nav .btn-nav-logout { margin-left: 4px; border: 1.5px solid #e6d9b8; color: #5d5850; background: #fff; }
.pd-nav .btn-nav-logout:hover { border-color: #8B6914; color: #8B6914; }

/* the ask box: a question typed here opens in a new chat tab (wired in nav.js) */
.pd-nav-ask { order: 5; flex: 1 1 100%; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 5px 0 14px;
  border: 1.5px solid #e6d9b8; border-radius: 99px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.pd-nav-ask:focus-within { border-color: #b18b46; box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.18); }
.pd-nav-ask-icon { flex-shrink: 0; color: #b18b46; }
.pd-nav-ask-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 500 var(--t-label, 15px)/1.2 'Inter', system-ui, sans-serif; color: #1a1a1a; }
.pd-nav-ask-input::placeholder { color: #9a948a; font-weight: 400; }
.pd-nav-ask-btn { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #d4af6f 0%, #b18b46 100%); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(198, 161, 91, 0.4); transition: transform .12s, box-shadow .12s; }
.pd-nav-ask-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(198, 161, 91, 0.5); }
@media screen and (min-width: 769px) {
  .v3-nav.pd-nav { flex-wrap: nowrap; padding: 0 24px; gap: 18px; }
  /* min-width: the box may shrink below its text box's natural width, so the links
     (and Logout) always fit on the row (bug check pd-001: Logout ran off the screen
     for admins at 770-870px) */
  .pd-nav-ask { order: 0; flex: 1 1 auto; min-width: 140px; max-width: 560px; margin: 0 auto; }
  .pd-nav .nav-left, .pd-nav .nav-user { flex-shrink: 0; }
  .pd-nav .nav-user-link, .pd-nav .btn-nav-logout { white-space: nowrap; }
}
/* tablets and small laptops: the logo without the wordmark, and tighter links */
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .v3-nav.pd-nav { padding: 0 16px; gap: 12px; }
  .pd-nav-word { display: none; }
  .pd-nav .nav-user-link { padding: 7px 8px; }
  .pd-nav .btn-nav-logout { padding: 6px 10px; margin-left: 2px; }
}
@media (max-width: 768px) {
  .pd-nav-word { display: none; }                        /* the logo alone on phones: the links need the room */
  .v3-nav.pd-nav { gap: 4px 6px; padding: 0 10px; }
  .pd-nav .nav-left { gap: 4px; flex-shrink: 0; }
  .pd-nav .brand { padding: 2px; }
  .pd-nav .nav-user { flex: 1 1 0; min-width: 0; justify-content: flex-end; gap: 0; flex-wrap: nowrap; }
  .pd-nav .nav-user-link, .pd-nav .btn-nav-logout { padding: 6px 6px; font-size: 13px; white-space: nowrap; }
  .pd-nav .btn-nav-logout { padding: 5px 9px; margin-left: 2px; }
  .pd-nav-ask { height: 40px; }
  .pd-nav-ask-input { font-size: 16px; }                 /* 16px stops iPhones zooming in on focus */
}

/* Home page header: its own links and buttons, the same look */
.home-header.pd-head { background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.94));
  box-shadow: 0 1px 0 rgba(198, 161, 91, 0.2); }
.home-header.pd-head.is-stuck { box-shadow: 0 1px 0 rgba(198, 161, 91, 0.28), 0 10px 30px -18px rgba(139, 105, 20, 0.35); }

/* ── Full footer (pages that scroll) ── */
body.pd-footer-full .site-footer { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 1.6fr) auto auto; align-items: start;
  justify-content: stretch; gap: 22px 64px; flex-wrap: nowrap; margin-top: 64px;
  padding: 44px max(24px, calc((100vw - 1320px) / 2 + 24px)) calc(26px + env(safe-area-inset-bottom, 0px));
  background: #1b2130; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; color: #c9cfdb; font-family: 'Inter', system-ui, sans-serif; }
body.pd-footer-full .site-footer::before, body.pd-footer-slim .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #b18b46, #e3c588 50%, #b18b46); }
body.pd-footer-full .site-footer-brand { display: flex !important; align-items: flex-start; gap: 14px; }   /* footer.js hides it inline for other pages */
.site-footer-brand img { border-radius: 9px; flex-shrink: 0; }
.site-footer-word { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #f3ead6; }
.site-footer-word sup { font-size: 0.55em; font-weight: 700; margin-left: 1px; color: #ff8a80; }
body.pd-footer-full .site-footer-brand span { display: block; margin-top: 6px; max-width: 440px; font-size: var(--t-label, 15px); line-height: 1.55; color: #aab2c2; }
.site-footer-connect { display: inline; padding: 0; border: 0; background: none; cursor: pointer; font: 700 var(--t-label, 15px)/1.55 'Inter', system-ui, sans-serif;
  color: #e3c588; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.site-footer-connect:hover { color: #fff; }
body.pd-footer-full .site-footer .site-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
body.pd-footer-full .site-footer .site-footer-link { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif; font-size: var(--t-label, 15px); font-weight: 500; color: #dfe4ee; }
body.pd-footer-full .site-footer .site-footer-link:hover { color: #e3c588; text-decoration: underline; text-underline-offset: 3px; }
body.pd-footer-full .site-footer small { display: none; }          /* said in the line below */
body.pd-footer-full .site-footer-legal { display: block !important; grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--t-fine, 13px); color: #8f98a8; }
@media (max-width: 720px) {
  body.pd-footer-full .site-footer { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 44px; padding: 34px 20px calc(22px + env(safe-area-inset-bottom, 0px)); }
  body.pd-footer-full .site-footer-brand { grid-column: 1 / -1; }
}

/* ── Slim footer (chat page): same colours, one thin fixed line. Same height as the old bar. ── */
body.pd-footer-slim .site-footer { background: #1b2130; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 0; color: #c9cfdb; }
body.pd-footer-slim .site-footer-brand { display: flex !important; align-items: center; gap: 8px; margin-right: 22px; }
body.pd-footer-slim .site-footer-brand img { width: 18px; height: 18px; border-radius: 5px; }
body.pd-footer-slim .site-footer-brand span { display: none; }      /* the sentence is for the full footer */
body.pd-footer-slim .site-footer-word { font-size: 14px; }
body.pd-footer-slim .site-footer .site-footer-links:first-of-type { margin-right: auto; }
body.pd-footer-slim .site-footer .site-footer-link { color: #dfe4ee; font-family: 'Inter', system-ui, sans-serif; }
body.pd-footer-slim .site-footer .site-footer-link:hover { color: #e3c588; }
body.pd-footer-slim .site-footer small { color: #8f98a8; }
@media (max-width: 720px) { body.pd-footer-slim .site-footer-brand { display: none !important; } }   /* links only on a phone */

@media print { .v3-nav.pd-nav, body.pd-footer-full .site-footer, body.pd-footer-slim .site-footer { display: none !important; } }

/* ── Background (owner, 2026-11-27: "the gold dots and golden background ... look ugly").
      No gold glow blobs, no dot grid, no cream wash: a plain light neutral behind
      white cards on the listing page, plain white elsewhere. The layers stay in
      the HTML (scripts look for them) but draw nothing. ── */
.home-aurora, .chat-aurora, .home-glow { display: none !important; }
.l-aurora::before, .l-aurora::after { display: none !important; }
.l-aurora { background: #f4f4f2 !important; background-image: none !important; }

/* ── Maps stay under the header. A Leaflet map stacks its own layers with
      z-indexes of 200 to 1000 (tiles, pins, buttons); without a boundary those
      compete with the page's header (z-index 200) and the map showed THROUGH
      the header when scrolled under it (owner, 2026-11-28, CMA report). Each
      map is now its own layer group, so its insides are ordered among
      themselves only. Full-screen maps set their own z-index and still cover
      the page. ── */
.leaflet-container { isolation: isolate; }

/* The "Pilot Door" wordmark is set in Sora on every page (owner, 2026-12-01:
   the Inter wordmark "looks very ugly"; picked option B of six). Only the
   wordmark: all other text stays Inter. */
.pd-nav-word, .site-footer-word, .home-logo-word, .home-foot-word, .home-demo-title,
.fa-logo, .cma-brand-logo, .welcome-vera-logo, .auth-logo, .ap-brandline, .pd-word, .home-title-brand {
  font-family: 'Sora', 'Inter', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em;
}
.home-title-brand { font-weight: 700; }                 /* beside the extra-bold headline words */
.ap-brandline span { font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0; }   /* its small subtitle is not the logo */

/* The footer's logo and wordmark lead home (owner, 2026-12-01). */
.site-footer-home { display: block; flex-shrink: 0; color: inherit; text-decoration: none; }
.site-footer-home:hover .site-footer-word { color: #fff; }
a.home-foot-word { display: block; text-decoration: none; }

/* "For agents" stands out in the footer, in gold (owner, 2026-12-02). */
body.pd-footer-full .site-footer a.site-footer-link.site-footer-agents,
body.pd-footer-slim .site-footer a.site-footer-link.site-footer-agents { color: #E3C083; font-weight: 700; }
body.pd-footer-full .site-footer a.site-footer-link.site-footer-agents:hover,
body.pd-footer-slim .site-footer a.site-footer-link.site-footer-agents:hover { color: #fff; }

/* CREA's MLS® trademark statement under the legal line of the full footer (owner, 2026-12-03). */
body.pd-footer-full .site-footer-legal .site-footer-tm { display: block; margin-top: 8px; font-size: 12px; line-height: 1.55; color: #7f8898; }

/* Slim footer on a phone: one tidy line, nothing wraps (owner, 2026-12-03: "they look not nice").
   "Contact Us" becomes "Contact" and the source note becomes "MLS® · Pillar 9™". */
.sf-narrow { display: none; }
@media (max-width: 720px) {
  .sf-wide { display: none; }
  .sf-narrow { display: inline; }
  body.pd-footer-slim .site-footer { padding-left: 14px; padding-right: 14px; gap: 14px; justify-content: space-between; }
  body.pd-footer-slim .site-footer .site-footer-links { gap: 14px; flex-wrap: nowrap; }
  body.pd-footer-slim .site-footer .site-footer-links:first-of-type { margin-right: 0; }
  body.pd-footer-slim .site-footer .site-footer-link,
  body.pd-footer-slim .site-footer small { font-size: 12px; line-height: 1; white-space: nowrap; }
  body.pd-footer-slim .site-footer a.site-footer-link.site-footer-agents { text-decoration: none; }
  body.pd-footer-slim .site-footer small { font-size: 11px; color: #7f8898; }
}
@media (max-width: 370px) {
  body.pd-footer-slim .site-footer, body.pd-footer-slim .site-footer .site-footer-links { gap: 10px; }
  body.pd-footer-slim .site-footer .site-footer-link { font-size: 11.5px; }
}
@media (max-width: 345px) { body.pd-footer-slim .site-footer small { display: none; } }   /* tiny phones: links only; cards and About carry the source */

/* A little air between "Door" and the superscript AI in every logo (owner, 2026-12-03). */
.pd-nav-word sup, .site-footer-word sup { margin-left: 0.22em; }
