/*
 * Shared by every DRI-678 landing page template: the reset, the enquiry
 * form's states, the "Powered by" credit, the photo viewer and the video
 * dialog. Each template's own file sets the look; this sets nothing a
 * template would need to fight.
 */

/* Slabo is one brand font Google serves only as "Slabo 13px"/"Slabo 27px", so
   it is declared here, as style.css does for the original page. */
@font-face {
  font-family: 'Slabo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/slabo27px/v7/mFT0WbgBwKPR_Z4hGN2qgx8D1Q.woff2) format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, video { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.pp-wrap {
  max-width: var(--max, 1200px); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.pp-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pp-photo-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Enquiry form: each template styles the fields; these are the states. */
.pp-form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; align-content: start; }
.pp-field { display: grid; gap: 6px; min-width: 0; }
.pp-full { grid-column: 1 / -1; }
.pp-field input, .pp-field textarea { width: 100%; font-size: 16px; }
.pp-field textarea { min-height: 120px; resize: vertical; }
.pp-error { font-size: 13px; font-weight: 600; color: #b3261e; }
.pp-send { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.pp-fine { grid-column: 1 / -1; margin: 0; font-size: 13px; opacity: .8; }
.pp-sent { padding: 20px 22px; border-radius: 10px; background: #e7f5ec; color: #14532d; font-weight: 600; }
@media (max-width: 520px) { .pp-form { grid-template-columns: 1fr; } }

/* Read more (property-page.js folds a long description). */
.pp-more.is-folded { max-height: 26em; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.pp-more-btn { justify-self: start; background: none; border: 0; padding: 0; margin-top: 4px; font-weight: 600; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* The map, filled by Google Maps once it comes near the viewport. */
#map { width: 100%; height: 100%; min-height: 280px; background: #e8eae6; }

/* "Powered by" and the logo, which takes the footer's text colour: the white
   logo file is a mask over currentColor, so it works on light and dark. */
.pp-powered { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; white-space: nowrap; }
.pp-powered:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Raised 2px so the wordmark's baseline lines up with "Powered by". The
   wordmark sits low in the image (its letters are rows 64 to 89 of 122), so a
   centred box left "dripflow" lower than the text beside it. translate leaves
   the footer's layout alone. */
.pp-df-logo {
  display: inline-block; width: 88px; height: 36px; flex: none; background-color: currentColor; translate: 0 -2px;
  -webkit-mask: url(../../img/property-page/dripflow-logo-white.png) center / contain no-repeat;
  mask: url(../../img/property-page/dripflow-logo-white.png) center / contain no-repeat;
}

/* Photo viewer and video */
.pp-viewer {
  border: 0; padding: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  background: #0b0d10; color: #f1f3f5; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.pp-viewer::backdrop { background: #0b0d10; }
.pp-viewer-inner {
  height: 100%; display: grid; grid-template-rows: auto 1fr; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.pp-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pp-viewer-count { font-variant-numeric: tabular-nums; color: #aeb6bf; }
.pp-viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.pp-viewer-stage img, .pp-viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.pp-viewer button { color: #f1f3f5; background: rgba(255, 255, 255, .1); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.pp-viewer button:hover { background: rgba(255, 255, 255, .18); }
.pp-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Grid-centred drawn chevrons (partials/chevron), so the arrow sits dead centre in its circle. */
.pp-viewer-prev, .pp-viewer-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0 !important;
  display: grid; place-items: center; }
.pp-chevron { display: block; flex: none; }
.pp-viewer-prev { left: 0; }
.pp-viewer-next { right: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
