/* Platform base layer. Everything here is either neutral (page frame) or a shared component (booking widget,
   contact form, cookie banner) that every design restyles through the --sab-* tokens. */
:root {
  --sab-bw-accent: var(--sab-color-accent, #0b6e75);
  --sab-bw-on-accent: var(--sab-color-on-accent, #ffffff);
  --sab-bw-bg: var(--sab-color-surface, #ffffff);
  --sab-bw-text: var(--sab-color-text, #1d2a30);
  --sab-bw-muted: var(--sab-color-muted, #5f6d74);
  --sab-bw-line: rgba(29, 42, 48, 0.14);
  --sab-bw-radius: var(--sab-radius, 10px);
  --sab-bw-btn-radius: var(--sab-btn-radius, 6px);
  --sab-bw-font: var(--sab-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  --sab-bw-heading: var(--sab-font-heading, var(--sab-bw-font));
}
html { -webkit-text-size-adjust: 100%; }
body.sab-body { margin: 0; background: var(--sab-color-bg, #ffffff); color: var(--sab-color-text, #1d2a30); font-family: var(--sab-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif); }
.sab-main { display: block; }
.sab-s { display: block; }
.sab-skip { position: absolute; left: -9999px; top: 8px; z-index: 10000; background: #fff; color: #000; padding: 8px 14px; border-radius: 4px; }
.sab-skip:focus { left: 8px; }
.sab-icon { display: inline-block; vertical-align: middle; flex: none; }

/* shared button (core sections, booking widget, contact form) */
.sab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 1px solid transparent; border-radius: var(--sab-bw-btn-radius); background: var(--sab-bw-accent); color: var(--sab-bw-on-accent); font: 600 15px/1.2 var(--sab-bw-font); text-transform: var(--sab-btn-transform, none); letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: filter .2s ease, transform .2s ease; }
.sab-btn:hover { filter: brightness(1.08); }
.sab-btn:active { transform: translateY(1px); }
.sab-btn[disabled] { opacity: .55; cursor: not-allowed; }
.sab-btn--ghost { background: transparent; color: var(--sab-bw-accent); border-color: currentColor; }
.sab-btn--wa { background: #1f9d55; color: #fff; }

/* ---------------------------------------------------------------- booking widget (popup + inline) */
.sab-bw-dialog { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.sab-bw-dialog::backdrop { background: rgba(10, 20, 25, .55); backdrop-filter: blur(2px); }
.sab-bw { box-sizing: border-box; position: relative; background: var(--sab-bw-bg); color: var(--sab-bw-text); font: 15px/1.5 var(--sab-bw-font); border-radius: var(--sab-bw-radius); padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.25); text-align: left; }
.sab-bw *, .sab-bw *::before, .sab-bw *::after { box-sizing: border-box; }
.sab-booking-inline .sab-bw { box-shadow: none; border: 1px solid var(--sab-bw-line); }
.sab-bw h2 { margin: 0 0 4px; font: 600 24px/1.2 var(--sab-bw-heading); color: inherit; letter-spacing: 0; text-transform: none; }
.sab-bw__lead { margin: 0 0 18px; color: var(--sab-bw-muted); font-size: 14px; }
.sab-bw__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--sab-bw-muted); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.sab-bw__close:hover { background: rgba(0,0,0,.06); color: var(--sab-bw-text); }
.sab-bw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sab-bw__field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--sab-bw-muted); }
.sab-bw__field--full { grid-column: 1 / -1; }
.sab-bw input, .sab-bw select, .sab-bw textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--sab-bw-line); border-radius: 6px; background: #fff; color: #1d2a30; font: 15px/1.3 var(--sab-bw-font); }
.sab-bw textarea { min-height: 72px; resize: vertical; }
.sab-bw input:focus, .sab-bw select:focus, .sab-bw textarea:focus { outline: 2px solid var(--sab-bw-accent); outline-offset: 1px; border-color: transparent; }
.sab-bw__extras { border: 1px solid var(--sab-bw-line); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }
.sab-bw__extras legend { padding: 0 4px; font-size: 13px; font-weight: 600; color: var(--sab-bw-muted); }
.sab-bw__extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--sab-bw-text); font-weight: 400; }
.sab-bw__extra input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--sab-bw-accent); }
.sab-bw__extra input[type=number] { width: 72px; min-height: 36px; padding: 6px 8px; }
.sab-bw__pay { display: flex; gap: 8px; margin: 0 0 12px; }
.sab-bw__pay label { flex: 1; display: flex; gap: 8px; align-items: center; border: 1px solid var(--sab-bw-line); border-radius: 8px; padding: 10px 12px; font-size: 14px; cursor: pointer; color: var(--sab-bw-text); font-weight: 500; }
.sab-bw__pay input { width: auto; min-height: 0; accent-color: var(--sab-bw-accent); }
.sab-bw__summary { background: rgba(0,0,0,.035); border-radius: 8px; padding: 12px 14px; margin: 4px 0 14px; font-size: 14px; }
.sab-bw__line { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.sab-bw__total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--sab-bw-line); margin-top: 6px; padding-top: 8px; }
.sab-bw__due { color: var(--sab-bw-accent); font-weight: 700; }
.sab-bw__msg { min-height: 20px; margin: 0 0 10px; font-size: 14px; color: #b42318; }
.sab-bw__msg--ok { color: #1f7a45; }
.sab-bw__fine { margin: 10px 0 0; font-size: 12px; color: var(--sab-bw-muted); }
.sab-bw__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 0 0 12px; color: var(--sab-bw-muted); }
.sab-bw__consent input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; accent-color: var(--sab-bw-accent); }
.sab-bw__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sab-bw__actions .sab-btn { flex: 1 1 auto; }
.sab-bw__done { text-align: center; padding: 8px 0; }
.sab-bw__done .sab-icon { color: var(--sab-bw-accent); }
.sab-bw__test { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #fff3cd; color: #7a5b00; font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.sab-bw__hp { position: absolute; left: -9999px; }
@media (max-width: 520px) {
  .sab-bw { padding: 22px 16px; }
  .sab-bw__grid { grid-template-columns: 1fr; gap: 0; }
  .sab-bw__pay { flex-direction: column; }
}

/* ---------------------------------------------------------------- contact form */
.sab-contact { display: flex; flex-direction: column; gap: 12px; font-family: var(--sab-bw-font); }
.sab-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sab-contact__field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: inherit; opacity: .9; }
.sab-contact input, .sab-contact textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(0,0,0,.18); border-radius: 6px; background: #fff; color: #1d2a30; font: 15px/1.4 var(--sab-bw-font); }
.sab-contact input:focus, .sab-contact textarea:focus { outline: 2px solid var(--sab-bw-accent); outline-offset: 1px; }
.sab-contact__hp { position: absolute; left: -9999px; }
.sab-contact__status { margin: 0; min-height: 20px; font-size: 14px; }
.sab-contact__status.is-error { color: #b42318; }
.sab-contact__status.is-ok { color: #1f7a45; }
.sab-contact .sab-btn { align-self: flex-start; }
@media (max-width: 600px) { .sab-contact__row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- consent-gated iframes + cookie banner */
.sab-consent-frame { position: relative; display: grid; place-content: center; gap: 8px; text-align: center; min-height: 300px; width: 100%; height: 100%; background: #e9eef0; color: #33454d; font: 14px/1.4 var(--sab-bw-font); border-radius: inherit; }
.sab-consent-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.sab-consent-frame__btn { justify-self: center; padding: 10px 18px; border-radius: 6px; border: 1px solid currentColor; background: #fff; cursor: pointer; font: inherit; }
.sab-cookie { position: fixed; z-index: 9990; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; background: #13252c; color: #f2f5f6; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.3); font: 14px/1.45 var(--sab-bw-font); }
.sab-cookie p { margin: 0; flex: 1 1 240px; }
.sab-cookie a { color: inherit; }
.sab-cookie__btns { display: flex; gap: 8px; }
.sab-cookie button { min-height: 40px; padding: 8px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: inherit; cursor: pointer; font: 600 14px var(--sab-bw-font); }
.sab-cookie button.is-primary { background: #fff; color: #13252c; border-color: #fff; }

/* ---------------------------------------------------------------- dashboard edit mode (only inside the preview iframe) */
.sab-editing [data-sab-section] { position: relative; }
.sab-editing [data-sab-section]:hover { outline: 2px dashed rgba(11, 110, 117, .55); outline-offset: -2px; }
.sab-editing [data-sab-section].sab-ed-selected { outline: 2px solid #0b6e75; outline-offset: -2px; }
.sab-editing [data-sab-field] { cursor: pointer; }
.sab-editing [data-sab-field]:hover { outline: 1px dashed #e07a1f; outline-offset: 2px; }
.sab-editing [data-sab-field].sab-ed-field { outline: 2px solid #e07a1f; outline-offset: 2px; }
.sab-editing [contenteditable] { outline: 2px solid #e07a1f !important; outline-offset: 2px; cursor: text; caret-color: #e07a1f; }
.sab-editing .sab-is-hidden { opacity: .35; filter: grayscale(1); }
.sab-ed-badge { position: absolute; z-index: 9000; top: 6px; left: 6px; padding: 3px 8px; border-radius: 4px; background: #0b6e75; color: #fff; font: 600 11px/1.4 system-ui, sans-serif; letter-spacing: .02em; pointer-events: none; }
/* easy mode ("Edit this page"): the dashboard names the selected section itself; texts of the selected section show
   a dotted line so it is clear they can be tapped */
.sab-easy .sab-ed-badge { display: none; }
.sab-easy .sab-editing [data-sab-section]:hover { outline: 0; }
.sab-easy .sab-editing [data-sab-section].sab-ed-selected { outline: 3px solid #0b6e75; outline-offset: -3px; }
.sab-easy .sab-ed-selected [data-sab-kind="text"], .sab-easy .sab-ed-selected [data-sab-kind="textarea"] { outline: 1px dashed rgba(224, 122, 31, .9); outline-offset: 3px; }
.sab-easy .sab-editing .sab-is-hidden { opacity: .3; }
.sab-missing, .sab-render-error { padding: 24px; margin: 8px; border: 2px dashed #c0392b; color: #c0392b; background: #fff5f4; font: 14px/1.4 system-ui, sans-serif; }

/* ---------------------------------------------------------------- text over photos (field type "placement")
   The section puts {{ s.place.cls }} and {{ s.place.style }} on the element that holds the photo and the text.
   Designs can use the variables in their own CSS; .sab-place__layer / __img / __bg / __scrim are ready-made helpers. */
.sab-place { --sab-justify: flex-start; --sab-alignv: flex-end; --sab-talign: left; --sab-scrim-a: 0; --sab-scrim-bg: linear-gradient(to top, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .5)) 45%, rgba(0,0,0,0) 78%); }
.sab-scrim--soft { --sab-scrim-a: .4; } .sab-scrim--medium { --sab-scrim-a: .62; }
.sab-place--dx-left { --sab-justify: flex-start; } .sab-place--dx-center { --sab-justify: center; } .sab-place--dx-right { --sab-justify: flex-end; }
.sab-place--dy-top { --sab-alignv: flex-start; --sab-scrim-bg: linear-gradient(to bottom, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .5)) 45%, rgba(0,0,0,0) 78%); }
.sab-place--dy-center { --sab-alignv: center; }
.sab-place--dy-bottom { --sab-alignv: flex-end; }
.sab-place--dy-center.sab-place--dx-left { --sab-scrim-bg: linear-gradient(to right, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .45)) 50%, rgba(0,0,0,0) 85%); }
.sab-place--dy-center.sab-place--dx-right { --sab-scrim-bg: linear-gradient(to left, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .45)) 50%, rgba(0,0,0,0) 85%); }
.sab-place--dy-center.sab-place--dx-center { --sab-scrim-bg: radial-gradient(ellipse at center, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .4)) 55%, rgba(0,0,0,0) 85%); }
.sab-place--da-left { --sab-talign: left; } .sab-place--da-center { --sab-talign: center; } .sab-place--da-right { --sab-talign: right; }
@media (max-width: 767px) {
  .sab-place--px-left { --sab-justify: flex-start; } .sab-place--px-center { --sab-justify: center; } .sab-place--px-right { --sab-justify: flex-end; }
  .sab-place--py-top { --sab-alignv: flex-start; --sab-scrim-bg: linear-gradient(to bottom, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .5)) 50%, rgba(0,0,0,0) 85%); }
  .sab-place--py-center { --sab-alignv: center; --sab-scrim-bg: radial-gradient(ellipse at center, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .4)) 60%, rgba(0,0,0,0) 90%); }
  .sab-place--py-bottom { --sab-alignv: flex-end; --sab-scrim-bg: linear-gradient(to top, rgba(0,0,0,var(--sab-scrim-a)) 0%, rgba(0,0,0,calc(var(--sab-scrim-a) * .5)) 50%, rgba(0,0,0,0) 85%); }
  .sab-place--pa-left { --sab-talign: left; } .sab-place--pa-center { --sab-talign: center; } .sab-place--pa-right { --sab-talign: right; }
}
.sab-place__layer { display: flex; flex-direction: column; justify-content: var(--sab-alignv); align-items: var(--sab-justify); text-align: var(--sab-talign); }
.sab-place__scrim { position: absolute; inset: 0; pointer-events: none; background: var(--sab-scrim-bg); }
.sab-place__img { object-fit: cover; object-position: var(--sab-fx, 50%) var(--sab-fy, 50%); transform: scale(var(--sab-zoom, 1)); transform-origin: var(--sab-fx, 50%) var(--sab-fy, 50%); }
.sab-place__bg { background-size: cover; background-position: var(--sab-fx, 50%) var(--sab-fy, 50%); }
@media (max-width: 767px) {
  .sab-place__img { object-position: var(--sab-fxp, 50%) var(--sab-fyp, 50%); transform: scale(var(--sab-zoomp, 1)); transform-origin: var(--sab-fxp, 50%) var(--sab-fyp, 50%); }
  .sab-place__bg { background-position: var(--sab-fxp, 50%) var(--sab-fyp, 50%); }
}
/* editor handles (only inside the dashboard preview) */
.sab-ed-handles { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 9500; }
.sab-ed-handle { position: absolute; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 0; border-radius: 99px; background: #e07a1f; color: #fff; font: 600 12px/1 system-ui, sans-serif; cursor: grab; box-shadow: 0 4px 14px rgba(0,0,0,.3); touch-action: none; user-select: none; }
.sab-ed-handle:active { cursor: grabbing; }
.sab-ed-focal { width: 26px; height: 26px; padding: 0; justify-content: center; border: 3px solid #fff; background: rgba(224,122,31,.85); transform: translate(-50%, -50%); }
.sab-ed-grid { position: absolute; z-index: 9400; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); outline: 2px solid #e07a1f; pointer-events: none; }
.sab-ed-grid div { border: 1px dashed rgba(255,255,255,.75); background: rgba(224,122,31,.06); }
.sab-ed-grid div.is-on { background: rgba(224,122,31,.38); }

/* WhatsApp button (runtime.js): bottom right, above the cookie notice and any bar or button fixed at the bottom */
.sab-wa { --sab-wa-gap: 16px; position: fixed; z-index: 9980; right: 16px; bottom: calc(var(--sab-wa-gap) + var(--sab-wa-lift, 0px) + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 20px 0 14px; border-radius: 999px; background: #1a7f45; color: #fff; text-decoration: none; font: 600 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); transition: bottom .25s ease, transform .2s ease, background-color .2s ease; }
.sab-wa:hover { background: #146b39; transform: translateY(-2px); }
.sab-wa.sab-wa--away { opacity: 0; pointer-events: none; transform: translateY(12px); }
.sab-wa { transition: bottom .25s ease, transform .2s ease, background-color .2s ease, opacity .2s ease; }
.sab-wa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #1a7f45; }
.sab-wa svg { flex: none; }
@media (max-width: 600px) { .sab-wa { width: 56px; padding: 0; justify-content: center; } .sab-wa__label { display: none; } }
@media print { .sab-wa { display: none; } }

/* Lightbox (sab/kit lightbox): photos full screen */
[data-sab-lightbox] { cursor: zoom-in; }
.sab-lb { position: fixed; inset: 0; z-index: 2147483100; background: rgba(8, 12, 16, .94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.sab-lb__stage { position: absolute; inset: 56px 72px 56px; display: flex; align-items: center; justify-content: center; }
.sab-lb__img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .25s ease; user-select: none; -webkit-user-select: none; }
.sab-lb__img.is-in { opacity: 1; }
.sab-lb__count { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); margin: 0; color: #fff; font: 500 15px/24px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .04em; }
.sab-lb__btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .2s ease; }
.sab-lb__btn:hover { background: rgba(255, 255, 255, .24); }
.sab-lb__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sab-lb__close { top: 10px; right: 12px; width: 48px; height: 48px; }
.sab-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.sab-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .sab-lb__stage { inset: 56px 0 84px; }
  .sab-lb__prev, .sab-lb__next { top: auto; bottom: 16px; transform: none; }
  .sab-lb__prev { left: calc(50% - 64px); }
  .sab-lb__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .sab-lb__img { transition: none; } }
/* "View all photos" over a listing's cover */
.sab-allphotos { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px; background: rgba(9, 20, 28, .55); color: #fff; font: 500 15px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s ease; }
.sab-allphotos:hover { background: rgba(9, 20, 28, .75); }
.sab-allphotos:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
