/* Owner portal (owner.ibizabeyond.com). Self-contained: brand v2 tokens (notte, calce, oro),
   Cormorant Garamond for titles, Manrope for the rest. Phone first. */
:root {
  --notte: #14120F; --ink: #1D1A15; --calce: #F4EFE6; --carta: #FBF8F3; --sabbia: #E9E1D3;
  --line: #E1D7C6; --pietra: #6B6459; --oro: #B8975A; --gold: #A07A33; --gold-text: #7A5A1F;
  --ok: #2F7A4F; --warn: #9A6A12; --bad: #A33A2C;
  --k-airbnb: #E0565B; --k-booking: #2C5BA8; --k-vrbo: #2E8B83; --k-google: #7A6BB0; --k-other: #6B6459;
  --k-owner: #B8975A; --k-ib: #14120F;
  --r: 3px;
  --shadow: 0 10px 30px rgba(20, 18, 15, .10);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--calce); color: var(--ink); font: 15px/1.5 Manrope, system-ui, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
body.o-noscroll { overflow: hidden; }
main { flex: 1; padding-bottom: 40px; }
a { color: var(--gold-text); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.o-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.o-wrap { width: min(1100px, 100% - 32px); margin: 0 auto; }
.o-narrow { width: min(560px, 100% - 32px); }
.o-loading { text-align: center; color: var(--pietra); padding: 60px 16px; }
.o-muted { color: var(--pietra); }
.o-h1 { font: 600 clamp(26px, 5vw, 34px)/1.15 "Cormorant Garamond", Georgia, serif; margin: 18px 0 10px; }
.o-h2 { font: 600 20px/1.2 "Cormorant Garamond", Georgia, serif; margin: 22px 0 10px; }
.o-h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin: 4px 0 10px; }

/* top bar + footer */
.o-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--carta); position: sticky; top: 0; z-index: 20; }
.o-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.o-brand img { width: 150px; height: auto; }
.o-brand__tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); border-left: 1px solid var(--line); padding-left: 10px; white-space: nowrap; }
.o-top__right { display: flex; align-items: center; gap: 8px; }
.o-lang { font-size: 16px; padding: 6px 8px; border: 1px solid var(--line); background: var(--carta); border-radius: var(--r); }
.o-foot { border-top: 1px solid var(--line); padding: 18px 16px 28px; font-size: 12px; color: var(--pietra); text-align: center; }
.o-foot p { margin: 4px 0; }
@media (max-width: 480px) { .o-brand__tag { display: none; } .o-brand img { width: 140px; } }

/* buttons */
.o-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--ink); background: var(--carta); color: var(--ink); border-radius: var(--r); font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; }
.o-btn:hover { background: var(--sabbia); }
.o-btn--gold { background: var(--notte); border-color: var(--notte); color: var(--calce); }
.o-btn--gold:hover { background: #2a2620; }
.o-btn--ghost { border-color: var(--line); }
.o-btn--wide { width: 100%; }
.o-btn:disabled, .o-btn.is-busy { opacity: .55; cursor: progress; }
.o-link { background: none; border: 0; padding: 4px 0; color: var(--gold-text); text-decoration: underline; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.o-link--danger { color: var(--bad); }
.o-back { margin: 14px 0 0; text-decoration: none; }
.o-iconbtn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); background: var(--carta); border-radius: var(--r); color: var(--ink); cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 600; }
.o-iconbtn--danger.is-sure { background: var(--bad); color: #fff; border-color: var(--bad); }

/* cards + forms */
.o-card { background: var(--carta); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 12px 0; }
.o-form { display: grid; gap: 14px; }
.o-field { display: grid; gap: 6px; }
.o-field__label { font-size: 13px; font-weight: 600; }
.o-form input:not([type=checkbox]), .o-form select, .o-form textarea, .o-sheet input, .o-sheet select, .o-plat input {
  width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.o-form textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--oro); outline-offset: 1px; }
.o-hint { color: var(--pietra); font-size: 12.5px; display: flex; gap: 6px; align-items: flex-start; }
.o-hint.is-ok { color: var(--ok); }
.o-hint.is-warn { color: var(--warn); }
.o-msg { margin: 0; padding: 10px 12px; border-radius: var(--r); font-size: 14px; }
.o-msg.is-bad { background: #F7E4E0; color: var(--bad); }
.o-msg.is-ok { background: #E6F0E8; color: var(--ok); }
.o-row { display: flex; gap: 8px; }
.o-row > input { flex: 1; min-width: 0; }
.o-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.o-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 520px) { .o-row3 { grid-template-columns: 1fr 1fr; } }
.o-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.o-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--notte); }
.o-pass { position: relative; }
.o-pass input { padding-right: 70px !important; }
.o-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--gold-text); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; }
.o-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.o-seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.o-seg button { border: 0; background: transparent; padding: 12px 8px; font-weight: 600; cursor: pointer; color: var(--pietra); }
.o-seg button.is-on { background: var(--notte); color: var(--calce); }

/* landing */
.o-hero { padding: 28px 0 10px; }
.o-hero__in { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .o-hero__in { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 24px; } }
.o-eyebrow { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 8px; font-weight: 700; }
.o-display { font: 600 clamp(36px, 8vw, 58px)/1.02 "Cormorant Garamond", Georgia, serif; margin: 0 0 12px; }
.o-lead { font-size: 17px; color: #3b362e; margin: 0 0 20px; max-width: 34em; }
.o-lead--small { font-size: 15px; }
.o-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.o-feats li { display: flex; gap: 12px; }
.o-feats .o-ico { width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.o-feats strong { display: block; }
.o-feats span { color: var(--pietra); font-size: 14px; }
.o-auth { box-shadow: var(--shadow); }

/* villas list */
.o-villas { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 760px) { .o-villas { grid-template-columns: 1fr 1fr; } }
.o-villa { display: grid; grid-template-columns: 110px 1fr; background: var(--carta); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; overflow: hidden; }
.o-villa:hover { border-color: var(--oro); }
.o-villa__img { background: var(--sabbia) center/cover no-repeat; min-height: 110px; display: flex; align-items: center; justify-content: center; color: var(--pietra); }
.o-villa__body { padding: 12px 14px; display: grid; gap: 4px; min-width: 0; }
.o-villa__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.o-villa__top strong { overflow: hidden; text-overflow: ellipsis; }
.o-bar { display: block; height: 6px; background: var(--sabbia); border-radius: 3px; overflow: hidden; }
.o-bar > span { display: block; height: 100%; background: var(--oro); }
.o-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--sabbia); color: var(--pietra); }
.o-pill--complete { background: #E6F0E8; color: var(--ok); }
.o-pill--live { background: var(--notte); color: var(--calce); }
.o-pill--paused { background: #F3E8D2; color: var(--warn); }
.o-addfirst { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 40px 20px; text-decoration: none; color: inherit; border: 1px dashed var(--oro); }
.o-addfirst .o-ico { width: 36px; height: 36px; color: var(--gold); }
.o-addfirst strong { font: 600 24px/1.2 "Cormorant Garamond", Georgia, serif; }
.o-licres { display: flex; gap: 10px; padding: 12px; border-radius: var(--r); font-size: 14px; }
.o-licres.is-ok { background: #E6F0E8; color: #1f4f33; }
.o-licres.is-ok .o-ico { color: var(--ok); width: 22px; height: 22px; }
.o-licres.is-warn { background: #F3E8D2; color: #5e430f; }

/* villa */
.o-vhead { display: flex; gap: 12px; align-items: center; margin-top: 12px; }
.o-vhead .o-h1 { margin: 0; }
.o-checklist { background: var(--carta); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 12px 0 0; }
.o-checklist summary { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px; }
.o-checklist ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.o-checklist a { display: flex; gap: 8px; align-items: center; color: var(--ink); text-decoration: none; font-size: 14px; }
.o-checklist li.is-ok a { color: var(--ok); }
.o-dot { width: 18px; height: 18px; border: 1.7px solid var(--pietra); border-radius: 50%; flex: none; }
.o-done { display: flex; gap: 8px; align-items: center; background: #E6F0E8; color: var(--ok); padding: 10px 14px; border-radius: var(--r); margin: 12px 0 0; font-size: 14px; }
.o-tabs { display: flex; gap: 4px; margin: 14px 0 6px; position: sticky; top: 61px; z-index: 10; background: var(--calce); padding: 6px 0; overflow-x: auto; }
.o-tabs a { flex: 1; text-align: center; padding: 10px 8px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--pietra); font-weight: 600; font-size: 14px; white-space: nowrap; background: var(--carta); }
.o-tabs a.is-on { background: var(--notte); color: var(--calce); border-color: var(--notte); }

/* calendar */
.o-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
@media (min-width: 760px) { .o-stats { grid-template-columns: repeat(4, 1fr); } }
.o-stat { background: var(--carta); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 2px; }
.o-stat__v { font: 600 26px/1 "Cormorant Garamond", Georgia, serif; }
.o-stat__l { font-size: 12.5px; color: var(--pietra); }
.o-stat small { font-size: 11.5px; color: var(--pietra); }
.o-tip { font-size: 13.5px; color: var(--pietra); margin: 8px 0; }
.o-cal { background: var(--carta); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; user-select: none; max-width: 640px; }
.o-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.o-cal__head strong { font: 600 22px/1 "Cormorant Garamond", Georgia, serif; }
.o-cal__wd, .o-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.o-cal__wd span { text-align: center; font-size: 11px; color: var(--pietra); font-weight: 700; padding: 4px 0; }
.o-cal__today { margin-top: 8px; }
.o-day { aspect-ratio: 1 / 1.05; min-height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 2px; padding: 3px 2px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; cursor: pointer; font-size: 13px; }
.o-day.is-blank { border: 0; background: transparent; cursor: default; }
.o-day__n { font-weight: 600; }
.o-day__p { font-size: 10.5px; color: var(--gold-text); font-weight: 700; white-space: nowrap; letter-spacing: -.02em; }
.o-day.is-priced { background: #FFFDF8; }
.o-day.is-taken { color: #fff; border-color: transparent; }
.o-day.is-taken .o-day__p { color: #fff; }
.o-day.is-past { opacity: .45; }
.o-day.is-today .o-day__n { text-decoration: underline; text-underline-offset: 3px; }
.o-day.is-sel { outline: 3px solid var(--oro); outline-offset: -2px; position: relative; z-index: 1; }
.o-k-airbnb { background: var(--k-airbnb) !important; } .o-k-booking { background: var(--k-booking) !important; }
.o-k-vrbo { background: var(--k-vrbo) !important; } .o-k-google { background: var(--k-google) !important; }
.o-k-other { background: var(--k-other) !important; } .o-k-owner { background: var(--k-owner) !important; }
.o-k-ib { background: var(--k-ib) !important; } .o-k-free { background: #fff !important; border: 1px solid var(--line); }
.o-legend { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--pietra); }
.o-legend li { display: flex; align-items: center; gap: 6px; }
.o-sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; flex: none; }

/* bottom sheet */
.o-sheet-wrap { position: fixed; inset: 0; background: rgba(20, 18, 15, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.o-sheet { background: var(--carta); width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 10px 10px 0 0; padding: 16px 16px max(18px, env(safe-area-inset-bottom)); display: grid; gap: 12px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .o-sheet-wrap { align-items: center; } .o-sheet { border-radius: var(--r); } }
.o-sheet__head { display: flex; justify-content: space-between; align-items: center; }
.o-sheet__count { font: 600 22px/1 "Cormorant Garamond", Georgia, serif; }
.o-sheet__sec { border-top: 1px solid var(--line); padding-top: 12px; }
.o-sheet .o-h3 { border-top: 1px solid var(--line); padding-top: 12px; margin: 4px 0 0; }
.o-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.o-actions .o-btn { flex: 1; min-width: 140px; }

/* photos */
.o-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.o-photo { margin: 0; background: var(--carta); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative; }
.o-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.o-photo__cover { position: absolute; top: 6px; left: 6px; background: var(--notte); color: var(--calce); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.o-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 4px; padding: 6px; }
.o-photo .o-iconbtn { min-width: 34px; height: 34px; }
.o-photo__move { display: flex; gap: 4px; }

/* details */
.o-stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.o-stepper button { width: 44px; border: 0; background: var(--sabbia); font-size: 20px; cursor: pointer; }
.o-stepper input { border: 0 !important; text-align: center; min-width: 0; border-radius: 0 !important; -moz-appearance: textfield; }
.o-stepper input::-webkit-outer-spin-button, .o-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.o-chipgroup { margin: 0 0 12px; }
.o-chipgroup__h { display: block; font-size: 12px; font-weight: 700; color: var(--pietra); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.o-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.o-chip { border: 1px solid var(--line); background: #fff; padding: 8px 12px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.o-chip.is-on { background: var(--notte); border-color: var(--notte); color: var(--calce); }
.o-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.o-loc__ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 14px; flex-wrap: wrap; }
.o-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 6px; }
.o-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.o-switch__ui { width: 46px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.o-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.o-switch input:checked + .o-switch__ui { background: var(--ok); }
.o-switch input:checked + .o-switch__ui::after { transform: translateX(18px); }
.o-switch input:focus-visible + .o-switch__ui { outline: 2px solid var(--oro); outline-offset: 2px; }
.o-savebar { position: sticky; bottom: 0; padding: 10px 0 max(10px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--calce) 30%); }

/* platforms */
.o-plats { display: grid; gap: 12px; }
@media (min-width: 900px) { .o-plats { grid-template-columns: 1fr 1fr; } }
.o-plat { display: grid; gap: 12px; margin: 0; }
.o-plat.is-on { border-color: var(--oro); }
.o-plat .o-h3 .o-sw { width: 14px; height: 14px; }
.o-conn { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 6px; background: #fff; font-size: 14px; }
.o-conn > div:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.o-conn .o-ico { color: var(--ok); }
.o-conn.is-err .o-ico { color: var(--warn); }
.o-conn small { color: var(--pietra); }
.o-conn__act { display: flex; gap: 16px; }
.o-copyfield { font-size: 13px !important; color: var(--pietra); background: var(--calce) !important; }
.o-help summary { cursor: pointer; color: var(--gold-text); font-weight: 600; font-size: 14px; }
.o-help p { font-size: 13.5px; color: #3b362e; margin: 8px 0 0; }

/* terms */
.o-terms h2 { font: 600 24px/1.2 "Cormorant Garamond", Georgia, serif; margin: 0 0 6px; }
.o-terms h3 { font-size: 15px; margin: 18px 0 4px; }
.o-terms p { margin: 6px 0; font-size: 14.5px; }
.o-fine { color: var(--pietra); font-size: 12.5px !important; }

/* toast */
.o-toast { visibility: hidden; opacity: 0; }
.o-toast.is-on { visibility: visible; opacity: 1; }
.o-toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--notte); color: var(--calce); padding: 12px 18px; border-radius: var(--r); font-weight: 600; font-size: 14px; z-index: 60; transition: transform .2s; max-width: calc(100% - 32px); box-shadow: var(--shadow); pointer-events: none; }
.o-toast.is-on { transform: translate(-50%, 0); }
.o-toast.is-bad { background: var(--bad); }
