/* ==========================================================================
   C · Plate: the site footer (owner's pick, 23 Nov 2026: "let it look recent and premium on web and app" ...
   "use your recommended design"). Markup: resources/views/common/footer_plate.blade.php, rendered by both
   common/footer and common/footer_premium.

   The Room bar's dark plate (solid #1A1614), floats as a rounded panel over a thin black base. The plate
   carries its own ground, so it sits the same on the white pages, the paper Chapters page, the homepage and the
   night theme (body.dark-mode): only the page around it changes. Above the plate the footer is transparent.

   Motion (only once common/footer_plate's script has added .sbp-js, i.e. never with Reduce Motion):
     the plate rises with the Room bar's small spring; a red glint runs once along its top rim; the top row, the
     columns and the chips follow, 80 ms apart; the safety dot breathes slowly (paused off screen, .sbp-off).
     Hovered links slide 2 px behind a small red dot; the badges and the red button lift.
   Reduce Motion: the plate is simply there and the dot is still.

   Clearance: the base grows by --sbp-clear, set where something is fixed over the bottom of the page
   (partials/public_mobile_nav: the phone tab bar; css/property-themes/shared.css: the tab bar and the booking bar;
   the Cinematic page's docked booking bar on desktop, below).
   ========================================================================== */

.sbp {
  --sbp-ease: cubic-bezier(.22, 1, .36, 1);
  --sbp-spring: cubic-bezier(.34, 1.45, .64, 1);
  /* Solid (WebKit QA, 23 Nov 2026): at .96 the page showed through the plate above the base and not over it, a visible
     colour step 72px from its bottom by day. #1A1614 is that .96 plate over the black base, so nothing else changes. */
  --sbp-plate: #1A1614;
  --sbp-base: #14100E;
  --sbp-red: #C8262B;
  --sbp-red-hover: #B01F24;
  --sbp-red-bright: #E63338;
  --sbp-red-soft: #F05A5E;
  --sbp-max: 1376px;
  --sbp-overlap: 72px;
  position: relative;
  isolation: isolate;
  display: block;
  margin: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .74);
  font-family: Poppins, "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Stated, not inherited: the property pages' body is 500, which made every link heavy (staging check, 23 Nov 2026).
     The headings, the List your place button, the store names, the chips' bold and the pills keep their own 500. */
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.sbp *, .sbp *::before, .sbp *::after { box-sizing: border-box; }
.sbp-vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.sbp a { color: inherit; text-decoration: none; }
.sbp a:hover { text-decoration: none; }
.sbp ul { list-style: none; margin: 0; padding: 0; }
.sbp p { margin: 0; }
.sbp .sbp-h { font: 500 15px/1.3 "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif; margin: 0 0 14px; letter-spacing: 0; color: #fff; }
.sbp svg.sbp-i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.sbp svg.sbp-if { fill: currentColor; stroke: none; }
.sbp a:focus-visible, .sbp button:focus-visible {
  outline: 2px solid var(--sbp-red-soft); outline-offset: 3px; border-radius: 6px; box-shadow: none;
}

/* ── The stage and the plate ─────────────────────────────────────────────── */
.sbp-stage { padding: 40px 32px 0; }
.sbp-plate {
  position: relative; z-index: 1;
  max-width: var(--sbp-max);
  margin: 0 auto calc(-1 * var(--sbp-overlap));
  padding: 40px 44px 32px;
  border-radius: 28px;
  background: var(--sbp-plate);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 40px 70px -30px rgba(20, 16, 14, .55), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
body.dark-mode .sbp-plate { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1); }
/* At night the page itself is the black ground: the base takes the page's own colour (whatever the page's night ground
   is: #0F0D0C on the property and home pages, the legacy navy elsewhere), so no edge shows either side of the plate
   (staging check, 23 Nov 2026: #14100E on #0F0D0C left a faint seam). By day the base stays the Room bar's near-black.
   errors/session_expired keeps its own theme switch, [data-theme="dark"] on <html>. */
body.dark-mode .sbp,
html[data-theme="dark"] .sbp { --sbp-base: transparent; }
/* The glint: a short red light that runs once along the top rim. */
.sbp-plate::before {
  content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, var(--sbp-red-bright) 50%, transparent) no-repeat;
  background-size: 36% 100%; background-position: -70% 0;
  opacity: 0; pointer-events: none;
}

/* ── Top row: logo, List your place, the store badges ────────────────────── */
.sbp-top {
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px 32px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.sbp-brand { display: flex; flex-direction: column; align-items: flex-start; }
.sbp-logo { display: inline-flex; align-items: center; }
.sbp-logo img { display: block; height: 34px; width: auto; max-width: 100%; }
.sbp-brand .dec-fline { margin: 10px 0 0 !important; font-size: 14px; }
.sbp-host {
  display: flex; align-items: center; gap: 16px; margin-left: auto;
  color: #fff; font: 400 18px/1.3 "Ubuntu", -apple-system, BlinkMacSystemFont, sans-serif;
}
.sbp a.sbp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sbp-red); color: #fff;
  font: 500 14px/1 Poppins, "Ubuntu", sans-serif;
  padding: 13px 18px; border-radius: 999px;
  transition: background-color .25s, transform .35s var(--sbp-spring);
}
.sbp a.sbp-pill:hover { background: var(--sbp-red-hover); color: #fff; transform: translateY(-2px); }
.sbp-pill svg.sbp-i { width: 16px; height: 16px; transition: transform .35s var(--sbp-ease); }
.sbp-pill:hover svg.sbp-i { transform: translateX(3px); }

.sbp-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.sbp a.sbp-store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 150px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .07); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .3s var(--sbp-spring), background-color .3s;
}
.sbp a.sbp-store:hover { background: rgba(255, 255, 255, .12); color: #fff; transform: translateY(-2px); }
.sbp-store svg { width: 24px; height: 24px; flex: none; }
.sbp-store > span:not(.sbp-vh) { display: flex; flex-direction: column; font: 500 16px/1.1 Poppins, sans-serif; letter-spacing: -.01em; }
.sbp-store small { font: 400 10px/1.2 Poppins, sans-serif; letter-spacing: .02em; opacity: .85; }

/* ── The link index ──────────────────────────────────────────────────────── */
.sbp-grid { display: grid; grid-template-columns: 1fr 1fr 2fr 1.2fr; gap: 32px; padding: 34px 0 30px; }
.sbp-grid li { margin: 0 0 9px; font-size: 14px; line-height: 1.45; break-inside: avoid; }
.sbp-col--pol ul { columns: 2; column-gap: 28px; }
.sbp-grid a {
  display: inline-flex; align-items: baseline;
  color: rgba(255, 255, 255, .74);
  transition: color .25s, transform .35s var(--sbp-ease);
}
.sbp-grid a::before {
  content: ""; flex: none; align-self: center;
  width: 0; height: 5px; margin-right: 0; border-radius: 50%;
  background: var(--sbp-red-bright);
  transition: width .3s var(--sbp-ease), margin .3s var(--sbp-ease);
}
.sbp-grid a:hover { color: #fff; transform: translateX(2px); }
.sbp-grid a:hover::before { width: 5px; margin-right: 7px; }

/* ── Chips: email, phone, the safety line, language and currency ─────────── */
.sbp-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.sbp .sbp-chip {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0; padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; line-height: 1.5; color: #fff;
  background: rgba(255, 255, 255, .06);
  transition: background-color .25s;
}
.sbp a.sbp-chip:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sbp-chip svg.sbp-i { width: 16px; height: 16px; }
.sbp .sbp-chip--safe {
  background: rgba(230, 51, 56, .15);
  box-shadow: inset 0 0 0 1px rgba(230, 51, 56, .35);
  line-height: 1.7;
}
.sbp-chip--safe a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.sbp .sbp-chip--safe a:hover { color: #fff; text-decoration: underline; text-decoration-color: #fff; }
.sbp-chip--safe b { font-weight: 500; }
.sbp-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sbp-red-soft); }
.sbp-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sbp-red-soft); opacity: 0; }

.sbp-prefs { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.sbp .sbp-pref,
.sbp .sb-fx-pick.sbp-pref {
  display: inline-flex; align-items: center; gap: 7px; height: auto;
  margin: 0; padding: 9px 14px; border-radius: 999px;
  font: 500 13px/1 Poppins, "Ubuntu", sans-serif; letter-spacing: 0;
  color: #fff; background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: border-color .25s, background-color .25s;
}
.sbp .sbp-pref:hover,
.sbp .sb-fx-pick.sbp-pref:hover { border-color: #fff; background: transparent; color: #fff; }
.sbp-pref svg.sbp-i { width: 16px; height: 16px; }
.sbp-pref .sbp-chev, .sbp .sb-fx-pick.sbp-pref .sb-fx-pick__chev { width: 14px; height: 14px; opacity: 1; transition: transform .3s var(--sbp-ease); }
.sbp-pref:hover .sbp-chev, .sbp .sb-fx-pick.sbp-pref:hover .sb-fx-pick__chev { transform: translateY(2px); }

/* ── The base: legal links, Cookie settings, copyright, credits, social ──── */
.sbp-base {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 28px;
  padding: calc(var(--sbp-overlap) + 32px) max(76px, calc((100% - var(--sbp-max)) / 2 + 44px)) calc(30px + var(--sbp-clear, 0px));
  background: var(--sbp-base);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
}
.sbp-copy { font-size: 13px; }
.sbp-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.sbp-legal a, .sbp .sbp-linkbtn { color: rgba(255, 255, 255, .62); transition: color .2s; }
.sbp .sbp-linkbtn { font: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.sbp-legal a:hover, .sbp .sbp-linkbtn:hover { color: #fff; }
.sbp-cred { font-size: 12px; line-height: 1.6; opacity: .9; }
.sbp-cred:empty { display: none; }
.sbp .sbp-cred .sb-fx-credit { font-size: 12px; opacity: 1; color: inherit; }
.sbp-cred a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.sbp-cred a:hover { color: #fff; }
.sbp-soc { display: flex; gap: 8px; justify-self: end; grid-column: 2; }
.sbp-soc li { margin: 0; }
.sbp-soc a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .3s var(--sbp-spring), border-color .25s, color .25s;
}
.sbp-soc a:hover { transform: translateY(-3px); border-color: #fff; color: #fff; }
.sbp-soc svg.sbp-i { width: 17px; height: 17px; }
.sbp-soc .fab { font-size: 16px; }

/* ── December (App\Support\WebTheme): the season's art along the plate's top rim ── */
.sbp-plate .dec-foot { border-radius: 28px 28px 0 0; }
.dec--bulbs .sbp-plate--dec { padding-top: calc(40px + 44px); }
.dec--gift .sbp-plate--dec { padding-top: calc(40px + 20px); }
.dec--crossover .sbp-plate--dec { padding-top: calc(40px + 74px); }

/* ── Motion (only with .sbp-js: the script never adds it under Reduce Motion) ── */
.sbp.sbp-js .sbp-plate {
  opacity: 0; transform: translateY(44px) scale(.985);
  transition: transform 1.05s var(--sbp-spring), opacity .6s var(--sbp-ease);
}
.sbp.sbp-js.is-in .sbp-plate { opacity: 1; transform: none; }
.sbp.sbp-js .sbp-rv {
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--sbp-ease), transform .9s var(--sbp-ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.sbp.sbp-js.is-in .sbp-rv { opacity: 1; transform: none; }
.sbp.sbp-js.is-in .sbp-plate::before { animation: sbp-glint 1.8s var(--sbp-ease) .8s both; }
@keyframes sbp-glint {
  0%   { opacity: 0; background-position: -70% 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; background-position: 170% 0; }
}
.sbp.sbp-js.is-in .sbp-dot::after { animation: sbp-breathe 3.2s ease-out 1.6s infinite; }
.sbp.sbp-js.is-in.sbp-off .sbp-dot::after { animation-play-state: paused; }
@keyframes sbp-breathe {
  0%        { transform: scale(1);   opacity: .55; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

/* ── Clearance under things fixed to the bottom of the page ──────────────── */
/* css/style.css gives body a 4rem bottom margin, which left a pale strip under the black base. */
body:has(.sbp) { margin-bottom: 0; }
/* The Cinematic property page docks its booking bar on desktop and reserved its height as body padding, which left
   a strip of page under the black base. The base takes that room instead, so the dark runs to the bottom. */
@media (min-width: 992px) {
  body.pp-body--cinematic:has(.sbp) { padding-bottom: 0; }
  body.pp-body--cinematic .sbp { --sbp-clear: calc(var(--pp-dock-h, 131px) + 16px); }
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .sbp { --sbp-overlap: 64px; }
  .sbp-stage { padding: 32px 20px 0; }
  .sbp-plate { padding: 32px 30px 26px; }
  .sbp-host { margin-left: 0; }
  .sbp-grid { grid-template-columns: 1fr 1fr 1fr; }
  .sbp-col--pol { grid-column: 1 / -1; order: 4; }
  .sbp-col--pol ul { columns: 3; }
  .sbp-prefs { margin-left: 0; }
  .sbp-base { padding-left: 40px; padding-right: 40px; padding-top: calc(var(--sbp-overlap) + 32px); }
}

/* ── Phone ───────────────────────────────────────────────────────────────── */
@media (max-width: 719.98px) {
  .sbp { --sbp-overlap: 56px; }
  .sbp-stage { padding: 28px 12px 0; }
  .sbp-plate { padding: 26px 20px 22px; border-radius: 24px; }
  .sbp-plate .dec-foot { border-radius: 24px 24px 0 0; }
  .sbp-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sbp-host { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 17px; }
  .sbp-grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .sbp-col--pol ul { columns: 2; column-gap: 18px; }
  .sbp-col--work { grid-column: 1 / -1; }
  .sbp .sbp-chip, .sbp .sbp-chip--safe { width: 100%; border-radius: 18px; }
  .sbp-base { grid-template-columns: 1fr; padding: calc(var(--sbp-overlap) + 28px) 20px calc(26px + var(--sbp-clear, 0px)); }
  .sbp-soc { justify-self: start; grid-column: auto; }
}

/* ── Reduce Motion: the plate is simply there, the dot is still ──────────── */
@media (prefers-reduced-motion: reduce) {
  .sbp *, .sbp *::before, .sbp *::after { animation: none !important; transition: none !important; }
  .sbp .sbp-plate, .sbp .sbp-rv { opacity: 1 !important; transform: none !important; }
  .sbp a:hover, .sbp-grid a:hover { transform: none !important; }
}
