/* Atlas Estates — shared styles for legal pages, property detail, About.
   Loaded ALONGSIDE atlas-cinema.css. Keeps detail-page payload tiny (no Tailwind needed). */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  font-family: 'DM Sans', 'Söhne', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}
.page.page-wide { max-width: 1120px; }
.page h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--forest);
  margin: 0 0 1rem;
}
.page h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--forest);
  margin: 2.5rem 0 .8rem;
  letter-spacing: -.01em;
}
.page h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--forest);
  margin: 1.6rem 0 .4rem;
}
.page p { margin: 0 0 1rem; color: var(--ink-dim); }
.page ul, .page ol { margin: 0 0 1.25rem; padding-left: 1.5rem; color: var(--ink-dim); }
.page li { margin: 0 0 .4rem; }
.page strong { color: var(--ink); }
.page a { color: var(--forest); border-bottom: 1px solid var(--line-2); text-decoration: none; }
.page a:hover { border-color: var(--forest); }
.page .lead {
  font-size: 18px;
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 2.5rem;
  font-style: italic;
}
.page .updated {
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--brass);
  margin: 0 0 1.25rem;
}
.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 14px;
}
.page table th, .page table td {
  text-align: left;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.page table th {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--forest);
  font-size: 13px;
  letter-spacing: .02em;
  background: var(--cream);
}
.page table td { color: var(--ink); }
.page .callout {
  background: var(--cream);
  border-left: 3px solid var(--brass);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 14px;
  color: var(--ink);
}

/* ── Top nav for legal pages (matches main site) ── */
.legal-nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 1.25rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(251, 248, 242, 0.9);
}
.legal-nav .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.legal-nav a { color: var(--ink-dim); font-size: 13px; border: 0; }
.legal-nav a:hover { color: var(--forest); }
.legal-nav .logo {
  font-family: 'Fraunces', serif;
  color: var(--forest);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.005em;
  border: 0;
}

/* ── EPC badge (UK A→G colours) ────────────────────── */
.epc-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  padding: 2px 6px 2px 4px;
  border-radius: 3px;
  color: #fff;
  letter-spacing: .02em;
}
.epc-badge::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: currentColor;
}
.epc-A { background: #008054; }
.epc-B { background: #19b459; }
.epc-C { background: #8dce46; }
.epc-D { background: #ffd500; color: #333; }
.epc-E { background: #fcaa3c; }
.epc-F { background: #ef8023; }
.epc-G { background: #e9153b; }

/* ── Property detail page ──────────────────────────── */
.pdp { background: var(--paper); }
.pdp .hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--cream-2);
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.pdp .hero-img.no-photo {
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pdp .head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
  margin: 2rem 0 1rem;
  flex-wrap: wrap;
}
.pdp .head h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--forest);
  margin: 0 0 .25rem;
}
.pdp .addr { color: var(--ink-dim); font-size: 15px; margin: 0; }
.pdp .price-block { text-align: right; }
.pdp .price {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 38px);
  color: var(--forest);
  font-weight: 500;
  letter-spacing: -.01em;
}
.pdp .price small { font-size: 14px; color: var(--ink-dim); font-weight: 400; }
.pdp .chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.pdp .chips .pill {
  background: var(--cream);
  border: 1px solid var(--line-2);
  padding: .35rem .85rem;
  font-size: 12px;
  border-radius: 999px;
  color: var(--ink);
}
.pdp .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--cream);
  border-radius: 4px;
}
.pdp .stat .smallcaps { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--brass); margin-bottom: .15rem; }
.pdp .stat .value { font-family: 'Fraunces', serif; font-size: 22px; color: var(--forest); line-height: 1; }
.pdp .description {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 2rem 0;
  white-space: pre-wrap;
}
.pdp .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: .85rem;
  margin: 1rem 0 2rem;
}
.pdp .gphoto {
  aspect-ratio: 4/3;
  background-color: var(--cream-2);
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  cursor: zoom-in;
  transition: transform .15s ease;
  position: relative;
}
.pdp .gphoto:hover { transform: scale(1.02); }
.pdp .gphoto .gcat {
  position: absolute;
  bottom: .4rem;
  left: .4rem;
  background: rgba(6, 42, 31, 0.78);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 2px;
}
.pdp .gphoto .gdate {
  position: absolute;
  bottom: .4rem;
  right: .4rem;
  background: rgba(184, 146, 77, 0.92);
  color: var(--forest-deep, #062A1F);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: .15rem .5rem;
  border-radius: 2px;
}
.pdp #pdp-map { height: 320px; border-radius: 4px; margin: 1rem 0 2rem; border: 1px solid var(--line); }

/* Lightbox for gallery photos */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 42, 31, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 4px; }
.lightbox .close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(246, 241, 231, .15);
  color: var(--cream);
  border: 0; width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  display: grid; place-items: center;
}
.lightbox .arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(246, 241, 231, .15);
  color: var(--cream); border: 0;
  width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 22px;
  display: grid; place-items: center;
}
.lightbox .arrow.prev { left: 1.5rem; }
.lightbox .arrow.next { right: 1.5rem; }
.lightbox .lb-caption {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 42, 31, 0.75);
  color: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  padding: .4rem .9rem;
  border-radius: 2px;
  max-width: 90%;
  text-align: center;
}

/* ── Cookie banner ─────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  background: var(--forest);
  color: var(--cream);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 12px 36px rgba(6,42,31,.4);
  max-width: 880px;
  margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; min-width: 240px; }
.cookie-banner a { color: var(--brass-2); border-bottom: 1px solid currentColor; }
.cookie-banner .btn-wrap { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner button {
  border: 1px solid var(--brass-2);
  background: transparent;
  color: var(--cream);
  padding: .55rem 1rem;
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}
.cookie-banner button.accept { background: var(--brass); color: var(--forest); border-color: var(--brass); }
.cookie-banner button.accept:hover { background: var(--brass-2); }
.cookie-banner button:not(.accept):hover { background: rgba(217, 181, 116, .15); }

@media (max-width: 600px) {
  .pdp .head { flex-direction: column; align-items: flex-start; }
  .pdp .price-block { text-align: left; }
  .page { padding: 2rem 1rem 4rem; }
}
