@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #16202b;
  --muted: #5d6874;
  --line: #e6e1d8;
  --bg: #faf8f4;
  --card: #ffffff;
  --navy: #13324d;
  --navy-2: #1d4a6e;
  --accent: #c27c3a;
  --booked: #eceae5;
  --sel: #13324d;
  --range: #dbe6ef;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 50, 77, .10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .4em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Fraunces, serif; font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--navy); }
.nav .btn { color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 .95rem Inter, sans-serif; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--navy-2); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #a9672b; }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 25, 40, .15) 0%, rgba(10, 25, 40, .65) 100%); }
.hero .wrap { position: relative; width: 100%; padding-bottom: 56px; padding-top: 120px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 760px; }
.hero p { font-size: 1.15rem; max-width: 600px; opacity: .92; margin: 0 0 28px; }

/* Search */
.search { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr auto; gap: 0; padding: 8px; max-width: 980px; }
.search .field { padding: 10px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.search .field:nth-last-child(2) { border-right: 0; }
.search label { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.search select, .search input { border: 0; font: 500 1rem Inter, sans-serif; color: var(--ink); background: transparent; padding: 4px 0; outline: none; width: 100%; }
.search .btn { border-radius: 12px; padding: 0 28px; }

/* Sections */
section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 1px 0 var(--line), 0 4px 18px rgba(0, 0, 0, .04); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--navy); font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.badge.ok { background: #e5f3ea; color: #1d6b3c; }
.badge.no { background: #f6e7e2; color: #9a3d21; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .town { font-size: .82rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card h3 { font-size: 1.25rem; margin: 0; }
.specs { color: var(--muted); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .78rem; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--navy); font-size: .92rem; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); grid-column: 1 / -1; }

/* About / features */
.about { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about img { border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.feature b { display: block; color: var(--navy); margin-bottom: 2px; }
.feature span { color: var(--muted); font-size: .93rem; }

.contact { text-align: center; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

footer { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 40px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: #fff; text-decoration: none; margin-left: 18px; }

/* Listing page */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius); overflow: hidden; margin-top: 26px; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery img:first-child { grid-row: 1 / 3; }
.gallery .all { position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 10px; padding: 8px 14px; font: 600 .88rem Inter, sans-serif; cursor: pointer; }
.listing-head { margin-top: 30px; }
.listing-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.listing-layout { display: grid; grid-template-columns: 1fr 380px; gap: 56px; margin-top: 18px; align-items: start; }
.listing-layout .main > div { padding: 26px 0; border-bottom: 1px solid var(--line); }
.listing-layout .main > div:first-child { padding-top: 0; }
.listing-layout h2 { font-size: 1.5rem; }
.amen-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 0; list-style: none; margin: 0; }
.amen-list li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.note { display: inline-block; background: #fbf1e6; color: #8a5420; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: .9rem; margin-top: 10px; }

/* Booking card */
.book { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 22px; }
.book h3 { font-size: 1.25rem; }
.book .dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c9c4ba; border-radius: 12px; overflow: hidden; margin: 14px 0 10px; }
.book .dates div { padding: 10px 12px; }
.book .dates div + div { border-left: 1px solid #c9c4ba; }
.book .dates small, .book .guests small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.book .guests { border: 1px solid #c9c4ba; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.book select { border: 0; font: 500 1rem Inter, sans-serif; width: 100%; background: transparent; outline: none; padding: 2px 0; }
.book .btn { width: 100%; padding: 15px; }
.book .msg { font-size: .88rem; color: var(--muted); margin: 10px 0 0; text-align: center; }
.book .msg.err { color: #9a3d21; }

/* Calendar */
.cal-wrap { position: relative; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; }
.cal-nav button[disabled] { opacity: .35; cursor: default; }
.months { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.month h4 { text-align: center; font: 600 1rem Inter, sans-serif; margin: 0 0 12px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.dow span { font-size: .75rem; color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: .9rem; border: 0; background: none; cursor: pointer; border-radius: 50%; font-family: Inter, sans-serif; color: var(--ink); position: relative; }
.day:hover:not([disabled]) { outline: 1.5px solid var(--ink); }
.day[disabled] { color: #b9b4ab; cursor: default; }
.day.booked { color: #b3ada2; text-decoration: line-through; }
.day.in-range { background: var(--range); border-radius: 0; }
.day.start, .day.end { background: var(--sel); color: #fff; border-radius: 50%; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; align-items: center; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: -2px; margin-right: 6px; }
.legend .clear { margin-left: auto; background: none; border: 0; text-decoration: underline; font: 600 .88rem Inter, sans-serif; cursor: pointer; }
.cal-status { font-size: .9rem; color: var(--muted); margin: 0 0 14px; }
.cal-status.err { color: #9a3d21; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8, 14, 20, .94); z-index: 100; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox .x { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .count { position: absolute; bottom: 20px; color: #fff; font-size: .9rem; }

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search .btn { grid-column: 1 / -1; padding: 14px; margin-top: 6px; }
  .about .wrap, .listing-layout { grid-template-columns: 1fr; gap: 32px; }
  .book { position: static; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .months { grid-template-columns: 1fr; }
  .months .month:nth-child(2) { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 120px; }
  .gallery img:first-child { grid-column: 1 / 3; grid-row: 1; }
  .gallery img:nth-child(n+4) { display: none; }
  .features, .amen-list { grid-template-columns: 1fr; }
}

/* Prices */
.card .price { font-size: 1rem; color: var(--muted); margin-top: 4px; }
.card .price b { color: var(--ink); font-size: 1.15rem; }
.book .price.big { margin-top: 4px; color: var(--muted); }
.book .price.big b { color: var(--ink); font-size: 1.6rem; font-family: Fraunces, Georgia, serif; }
.book .price.big small { display: block; font-size: .8rem; margin-top: 2px; }

/* Direct booking */
.card .price small { font-size: .8rem; color: var(--muted); }
.book .rate { margin-top: 4px; color: var(--muted); }
.book .rate b { color: var(--ink); font-size: 1.6rem; font-family: Fraunces, Georgia, serif; }
.book .rate small { display: block; font-size: .82rem; margin-top: 2px; }
.quote { margin: 4px 0 14px; font-size: .92rem; }
.quote .row { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.quote .row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--ink); font-weight: 600; font-size: 1rem; }
.guest-form { display: grid; gap: 8px; margin-bottom: 14px; }
.guest-form input { width: 100%; border: 1px solid #c9c4ba; border-radius: 10px; padding: 11px 12px; font: 500 .95rem Inter, sans-serif; }
.guest-form input:focus { outline: 2px solid var(--navy); border-color: transparent; }
.book .secure { font-size: .78rem; color: var(--muted); text-align: center; margin: 8px 0 0; }
.status-card { max-width: 640px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 34px; }
.status-card h1 { font-size: 2rem; }
.status-card .details { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 18px 0 24px; }
.status-card .details span:nth-child(odd) { color: var(--muted); }
.status-card .ref { font-family: ui-monospace, Menlo, monospace; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Search results */
.grid-sub { grid-column: 1 / -1; font-family: Fraunces, Georgia, serif; font-size: 1.3rem; font-weight: 600; margin-top: 12px; }
.grid-sub .linkish { font: 600 .95rem Inter, sans-serif; color: var(--navy); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.card.dim .ph img { filter: grayscale(.6); opacity: .75; }

/* Owner pricing page */
.admin { padding-bottom: 120px; }
.admin .section-head { margin-top: 40px; }
.admin .section-head p { text-align: right; font-size: .92rem; }
.msg.ok { color: #1d6b3c; }
.admin-tax { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; font-size: .95rem; }
.admin-tax input { width: 76px; border: 1px solid #c9c4ba; border-radius: 8px; padding: 7px 9px; font: 500 .95rem Inter, sans-serif; margin: 0 4px; }
.admin-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; display: grid; grid-template-columns: 260px 1fr; gap: 10px 22px; align-items: center; }
.admin-home { display: flex; gap: 12px; align-items: center; }
.admin-home img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.admin-home b { display: block; font-size: 1rem; }
.admin-home small { color: var(--muted); font-size: .8rem; }
.admin-fields { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.admin-fields label span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; min-height: 2.1em; }
.admin-input { display: flex; align-items: center; border: 1px solid #c9c4ba; border-radius: 10px; padding: 0 10px; background: #fff; }
.admin-input:focus-within { outline: 2px solid var(--navy); border-color: transparent; }
.admin-input i { font-style: normal; color: var(--muted); }
.admin-input input { border: 0; outline: none; width: 100%; padding: 10px 4px; font: 500 1rem Inter, sans-serif; background: transparent; }
.admin-preview { grid-column: 1 / -1; font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.admin-preview b { color: var(--ink); }
.admin-preview .off { color: #9a3d21; font-weight: 600; }
.admin-save { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 14px 0; background: linear-gradient(180deg, rgba(250,248,244,0) 0%, var(--bg) 30%); }
@media (max-width: 960px) {
  .admin-row { grid-template-columns: 1fr; }
  .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin .section-head p { text-align: left; }
}

/* Nightly prices on the guest calendar */
.day { flex-direction: column; line-height: 1.1; }
.day .dp { font-size: .6rem; color: var(--muted); margin-top: 2px; font-weight: 500; }
.day.start .dp, .day.end .dp { color: rgba(255, 255, 255, .85); }

/* Calendar pricing page */
.admin .sq { font-weight: 600; font-size: .92rem; }
.admin .sq.ok { color: #1d6b3c; }
.admin .sq.err { color: #9a3d21; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.admin-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: 600 .9rem Inter, sans-serif; color: var(--ink); cursor: pointer; }
.admin-tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-tab .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 4px; vertical-align: 1px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.admin-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-panel-head a { font-weight: 600; font-size: .9rem; color: var(--navy); }
.admin-hint { color: var(--muted); font-size: .86rem; margin: 10px 0 18px; }
.admin-cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.admin-cal-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cal-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.1rem; }
.cal-arrow[disabled] { opacity: .35; cursor: default; }
.chip-btn { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; font: 500 .82rem Inter, sans-serif; cursor: pointer; color: var(--ink); }
.chip-btn:hover { border-color: var(--navy); }
.admin-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.adays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.aday { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-family: Inter, sans-serif; color: var(--ink); padding: 4px 2px; position: relative; }
.aday b { font-size: .8rem; font-weight: 600; }
.aday em { font-style: normal; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.aday small { font-size: .58rem; color: #9a3d21; text-transform: uppercase; letter-spacing: .04em; }
.aday.custom { background: #fbf1e6; border-color: #ecd2b4; }
.aday.custom em { color: #8a5420; font-weight: 700; }
.aday.booked { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.035) 0 6px, transparent 6px 12px); }
.aday.sel { outline: 2px solid var(--navy); outline-offset: -2px; background: #dbe6ef; }
.aday.past { cursor: default; color: #c3beb5; border-color: transparent; background: transparent; }
.aday:hover:not(.past) { border-color: var(--navy); }
.admin-legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; font-size: .84rem; color: var(--muted); }
.admin-legend .lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 6px; background: #fff; }
.admin-legend .lg.custom { background: #fbf1e6; border-color: #ecd2b4; }
.admin-legend .lg.booked { background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.12) 0 3px, transparent 3px 6px); }
.admin-legend .tip { margin-left: auto; }
.admin-setbar { position: sticky; bottom: 74px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.admin-setbar #selCount { font-weight: 600; margin-right: auto; }
.admin-setbar .admin-input { width: 170px; background: #fff; }
.admin-setbar .btn { padding: 10px 16px; }
.admin-setbar .btn:not(.ghost) { background: var(--accent); }
.admin-setbar .btn.ghost { color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 960px) {
  .admin-months { grid-template-columns: 1fr; }
  .admin-legend .tip { margin-left: 0; }
}

/* Owner page: sections, guest messages, bookings & sync */
.muted { color: var(--muted); }
.owner-nav { display: flex; gap: 4px; margin-top: 34px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.owner-nav button { border: 0; background: none; padding: 12px 18px; font: 600 .98rem Inter, sans-serif; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.owner-nav button.on { color: var(--navy); border-bottom-color: var(--accent); }
.owner-nav button:hover { color: var(--navy); }
.admin .owner-nav + div .section-head { margin-top: 26px; }
.owner-h3 { font-family: Fraunces, Georgia, serif; font-size: 1.3rem; margin: 30px 0 12px; }
.owner-h3.flush { margin-top: 0; }
.owner-card { margin-bottom: 16px; }
.owner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 8px; }
.owner-grid.two { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.owner-grid label span, .fld span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.owner-grid label small { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.owner-grid input, .owner-grid select, .owner-grid textarea, .fld input, .fld textarea { width: 100%; border: 1px solid #c9c4ba; border-radius: 10px; padding: 10px 12px; font: 500 .95rem Inter, sans-serif; background: #fff; color: var(--ink); }
.owner-grid textarea, .fld textarea { resize: vertical; line-height: 1.5; font-weight: 400; }
.owner-grid input:focus, .owner-grid select:focus, .owner-grid textarea:focus, .fld input:focus, .fld textarea:focus { outline: 2px solid var(--navy); border-color: transparent; }
.admin code { background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; font-size: .85em; }

.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row b { display: block; font-size: .96rem; }
.switch-row small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.switch-row small a { color: var(--navy); font-weight: 600; }
.switch-row.big b { font-size: 1.05rem; }
.switch-row.inline { padding: 0; align-items: center; }
.switch { flex: 0 0 auto; width: 42px; height: 24px; border-radius: 999px; background: #cfc9bf; position: relative; transition: background .15s; margin-top: 1px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch-row input:checked + .switch { background: #1d6b3c; }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--navy); outline-offset: 2px; }

.msg-card { display: grid; gap: 12px; }
.msg-card.off .fld, .msg-card.off .var-chips { opacity: .55; }
.msg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.msg-head b { font-size: 1.05rem; }
.msg-when { color: var(--muted); font-size: .9rem; }
.msg-when input { width: 58px; border: 1px solid #c9c4ba; border-radius: 8px; padding: 6px 8px; font: 600 .92rem Inter, sans-serif; text-align: center; }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); }
.var-chip { border: 1px dashed #c9c4ba; background: var(--bg); border-radius: 7px; padding: 3px 7px; font: 500 .76rem ui-monospace, Menlo, monospace; color: var(--navy); cursor: pointer; }
.var-chip:hover { border-color: var(--navy); border-style: solid; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-actions .msg { margin: 0 0 0 6px; font-size: .86rem; }
.msg-preview { border-top: 1px dashed var(--line); padding-top: 14px; }
.pv-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.pv-bar select { border: 1px solid #c9c4ba; border-radius: 8px; padding: 5px 8px; font: 500 .85rem Inter, sans-serif; }
.pv-warn { background: #fbf1e6; color: #8a5420; border-radius: 10px; padding: 8px 12px; font-size: .85rem; margin: 0 0 10px; }
.pv-mail { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; font-size: .95rem; }
.pv-mail p { margin: 0 0 12px; }
.pv-mail a { color: var(--navy); }
.pv-subject { font-weight: 700; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.pv-subject span { display: inline-block; font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-right: 10px; }
.pv-box { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .88rem; }
.pv-box span { color: var(--muted); }
.admin-tab .tick { color: #1d6b3c; font-weight: 700; }
.admin-tab.on .tick { color: #bfe5cc; }

.sync-explain { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 10px 0 18px; }
.sync-explain > div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sync-explain p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }
.sync-row { display: grid; grid-template-columns: 1.1fr 1.1fr 1.2fr 2fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.sync-row.head { border-top: 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 0; }
.sync-cell small { display: block; color: var(--muted); font-size: .78rem; }
.sync-cell .ok { color: #1d6b3c; font-weight: 600; }
.sync-cell .warn { color: #9a3d21; font-weight: 600; }
.sync-link { display: flex; gap: 6px; }
.sync-link input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: 500 .76rem ui-monospace, Menlo, monospace; color: var(--muted); background: var(--bg); }

.bk-card { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 14px; }
.bk-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bk-top b { font-size: 1.05rem; }
.bk-top .ref { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: var(--muted); }
.bk-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 3px 9px; }
.bk-badge.ok { background: #e3f1e8; color: #1d6b3c; }
.bk-badge.wait { background: #fbf1e6; color: #8a5420; }
.bk-badge.off { background: var(--booked); color: var(--muted); }
.bk-dates { margin-top: 8px; font-weight: 500; }
.bk-guest { margin-top: 4px; font-size: .9rem; color: var(--muted); }
.bk-guest a { color: var(--navy); }
.bk-note { margin: 10px 0 0; font-size: .86rem; background: #fbf1e6; color: #8a5420; border-radius: 10px; padding: 8px 12px; }
.bk-note.bad { background: #fdecea; color: #9a2a1f; font-weight: 600; }
.bk-main .msg { text-align: left; margin: 8px 0 0; font-size: .86rem; }
.bk-msgs { display: grid; gap: 8px; align-content: start; }
.bk-msg { display: flex; gap: 10px; align-items: center; font-size: .88rem; }
.bk-msg i { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: .78rem; background: var(--booked); color: var(--muted); }
.bk-msg.sent i { background: #e3f1e8; color: #1d6b3c; }
.bk-msg.scheduled i { background: #dbe6ef; color: var(--navy); }
.bk-msg.failed i { background: #fdecea; color: #9a2a1f; }
.bk-msg span { flex: 1; }
.bk-msg b { font-weight: 600; }
.bk-msg small { display: block; color: var(--muted); font-size: .78rem; }
.bk-msg.failed small { color: #9a2a1f; }
.linkish { background: none; border: 0; padding: 0; font: 600 .84rem Inter, sans-serif; color: var(--navy); text-decoration: underline; cursor: pointer; }
.linkish[disabled] { opacity: .5; cursor: default; }
.bk-past summary { cursor: pointer; font-weight: 600; color: var(--muted); margin: 16px 0 12px; }
@media (max-width: 960px) {
  .owner-grid, .owner-grid.two, .sync-explain, .bk-card { grid-template-columns: 1fr; }
  .sync-row { grid-template-columns: 1fr 1fr; }
  .sync-row.head { display: none; }
  .sync-link { grid-column: 1 / -1; }
}

/* Contact us */
.contact { scroll-margin-top: 64px; }
.contact-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact-menu { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; animation: contactIn .18s ease-out; }
.contact-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 999px; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font: 600 .95rem Inter, sans-serif; text-decoration: none; transition: background .15s, color .15s; }
.contact-menu a:hover, .contact-menu a:focus-visible { background: var(--navy); color: #fff; }
@keyframes contactIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Door codes */
.lock-connect { background: #fbf1e6; color: #8a5420; border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-bottom: 14px; }
.lock-connect .warn, .bk-door .warn { color: #9a2a1f; font-weight: 600; }
.lock-row { display: grid; grid-template-columns: 1fr 2fr .8fr .8fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.lock-row.head { border-top: 0; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-top: 0; }
.lock-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.lock-sel { display: flex; flex-direction: column; gap: 3px; min-width: 200px; }
.lock-sel select { border: 1px solid #c9c4ba; border-radius: 8px; padding: 7px 8px; font: 500 .88rem Inter, sans-serif; background: #fff; }
.lock-sel small { color: var(--muted); font-size: .74rem; padding-left: 2px; }
.lock-sel small.warn { color: #9a3d21; }
.lock-time { border: 1px solid #c9c4ba; border-radius: 8px; padding: 7px 8px; font: 500 .9rem Inter, sans-serif; width: 100%; max-width: 140px; }
.bk-door { margin: 10px 0 0; font-size: .9rem; }
.bk-door .ok { color: #1d6b3c; font-weight: 600; }
@media (max-width: 960px) {
  .lock-row { grid-template-columns: 1fr 1fr; }
  .lock-row.head { display: none; }
  .lock-pick { grid-column: 1 / -1; }
}

/* Owner page: availability rules */
.admin-fields.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-fields select { width: 100%; border: 1px solid #c9c4ba; border-radius: 10px; padding: 10px 8px; font: 500 .95rem Inter, sans-serif; background: #fff; color: var(--ink); }
.admin .msg.err { color: #9a3d21; }

/* Owner page: Today */
.td-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.td-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.td-stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1.15; }
.td-stat span { color: var(--muted); font-size: .86rem; }
.td-alerts { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 8px; box-shadow: var(--shadow); }
.td-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.td-alerts h3 + .td-alert { border-top: 0; }
.td-alert i { flex: 0 0 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: .78rem; }
.td-alert.bad i { background: #fdecea; color: #9a2a1f; }
.td-alert.bad span { color: #9a2a1f; font-weight: 600; }
.td-alert.warn i { background: #fbf1e6; color: #8a5420; }
.td-alert.info i { background: #dbe6ef; color: var(--navy); }
.td-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.td-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 16px; padding: 14px 18px 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.td-card.ext { border-top-color: #d4574e; }
.td-card.pending { border-top-color: var(--accent); }
.td-when { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.td-who { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-top: 2px; }
.td-who b { display: block; font-size: 1.05rem; }
.td-who small { display: block; color: var(--muted); font-size: .8rem; }
.td-home { font-weight: 600; font-size: .94rem; }
.td-dates { color: var(--muted); font-size: .86rem; }
.td-dates .code, .bk-top .ref { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.td-door { font-size: .86rem; }
.td-door.ok { color: #1d6b3c; font-weight: 600; }
.td-door.warn { color: #9a2a1f; font-weight: 600; }
.td-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; }
.td-card .td-actions { margin-top: 8px; }
.td-actions a { color: var(--navy); font-weight: 600; }
.src { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.src.web { background: #dbe6ef; color: var(--navy); }
.src.ext { background: #fbe5e3; color: #a3362e; }
@media (max-width: 960px) {
  .td-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-fields.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Owner page: multi-calendar */
.mc-nav { display: flex; gap: 8px; align-items: center; }
.mc-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.mc-legend .lg { display: inline-block; width: 22px; height: 12px; border-radius: 999px; vertical-align: -1px; margin-right: 6px; }
.lg.web { background: var(--navy); }
.lg.ext { background: #d4574e; }
.lg.pend { background: repeating-linear-gradient(135deg, #c27c3a 0 4px, #e3b98c 4px 8px); }
.lg.blk { border-radius: 4px !important; background: repeating-linear-gradient(135deg, #8a929b 0 2px, #fff 2px 6px); border: 1px solid #c9c4ba; }
.lg.pblk { border-radius: 4px !important; background: #e2ded6; }
.lg.prep { border-radius: 4px !important; background: repeating-linear-gradient(135deg, #d6d1c8 0 2px, #fff 2px 6px); border: 1px solid #e2ded6; }
.mc-legend .cp { color: #8a5420; }
.mc-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.mc-grid { --cw: 58px; --hw: 172px; display: grid; grid-template-rows: 62px; grid-auto-rows: 64px; width: max-content; }
.mc-corner { grid-row: 1; grid-column: 1; position: sticky; left: 0; z-index: 4; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; padding: 8px 12px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.mc-hd { grid-row: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.mc-hd small { color: var(--muted); font-size: .64rem; font-weight: 600; }
.mc-hd b { font-weight: 600; line-height: 1.4; }
.mc-hd em { position: absolute; top: 4px; left: 5px; font-style: normal; font-size: .66rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
.mc-hd.mstart { box-shadow: inset 1px 0 0 #c9c4ba; }
.mc-hd.today b { background: var(--navy); color: #fff; border-radius: 999px; padding: 0 7px; }
.mc-hd.wknd { background: #fbfaf7; }
.mc-home { grid-column: 1; position: sticky; left: 0; z-index: 4; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 12px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.mc-home b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-home small { color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-cell { border: 0; border-right: 1px solid #f1eee8; border-bottom: 1px solid var(--line); background: #fff; font: 500 .74rem Inter, sans-serif; color: var(--muted); display: flex; align-items: flex-end; justify-content: center; padding: 0 0 6px; margin: 0; min-width: 0; }
.mc-cell.wknd { background: #fbfaf7; }
button.mc-cell { cursor: pointer; }
button.mc-cell:hover { background: #eef3f8; }
.mc-cell em { font-style: normal; }
.mc-cell em.cp { color: #8a5420; font-weight: 700; }
.mc-cell i { font-style: normal; font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.mc-cell.past { background: #f6f4f0; }
.mc-cell.today { box-shadow: inset 2px 0 0 var(--navy); }
.mc-cell.block { background: repeating-linear-gradient(135deg, rgba(93, 104, 116, .2) 0 3px, #fff 3px 8px); color: #3d4650; }
.mc-cell.pblock { background: #ece9e3; color: #8a8378; }
.mc-cell.prep { background: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 3px, #fff 3px 8px); }
.mc-cell.notice em, .mc-cell.window em { opacity: .45; }
.mc-cell.sel, button.mc-cell.sel:hover { background: #dbe6ef; outline: 2px solid var(--navy); outline-offset: -2px; color: var(--navy); }
.mc-res { position: relative; z-index: 2; align-self: start; margin-top: 8px !important; height: 30px; margin: 0 calc(var(--cw) / 2); border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: 600 .78rem Inter, sans-serif; display: flex; align-items: center; gap: 6px; padding: 0 12px; overflow: hidden; white-space: nowrap; cursor: pointer; text-align: left; min-width: 0; box-shadow: 0 2px 6px rgba(19, 50, 77, .18); }
.mc-res span { overflow: hidden; text-overflow: ellipsis; }
.mc-res small { opacity: .8; font-weight: 500; flex: 0 0 auto; }
.mc-res.ext { background: #d4574e; }
.mc-res.pending { background: repeating-linear-gradient(135deg, #c27c3a 0 8px, #b06c2c 8px 16px); }
.mc-res.cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.mc-res.cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.mc-res:focus-visible, button.mc-cell:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mc-detail { margin-top: 14px; max-width: 440px; }
.mc-detail-head { display: flex; justify-content: space-between; align-items: center; }
.mc-detail .td-card { box-shadow: none; border: 0; border-radius: 0; padding: 4px 0 0; }
.mc-bar { bottom: 16px; }
.mc-bar #mcSelInfo { font-weight: 600; margin-right: auto; }
#mcMsg { text-align: left; margin: 0 0 8px; font-size: .9rem; }
@media (max-width: 640px) {
  .mc-grid { --cw: 50px; --hw: 104px; }
  .mc-home { padding: 6px 8px; }
  .mc-home b { font-size: .78rem; white-space: normal; line-height: 1.2; }
  .mc-home small { display: none; }
  .mc-nav { width: 100%; }
}

/* Owner page: reservations */
.rs-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.rs-seg { display: inline-flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.rs-seg button { border: 0; background: none; border-radius: 999px; padding: 7px 14px; font: 600 .86rem Inter, sans-serif; color: var(--muted); cursor: pointer; }
.rs-seg button.on { background: var(--navy); color: #fff; }
.rs-filters select, .rs-filters input[type=search] { border: 1px solid #c9c4ba; border-radius: 999px; padding: 8px 12px; font: 500 .88rem Inter, sans-serif; background: #fff; color: var(--ink); }
.rs-filters input[type=search] { flex: 1; min-width: 220px; }
.rs-count { color: var(--muted); font-size: .84rem; margin: 6px 0 12px; }
.rs-flash { display: block; background: #e3f1e8; border-radius: 12px; padding: 10px 14px; text-align: left; margin: 10px 0; font-weight: 600; }
.bk-top .src { margin-left: 2px; }
.bk-card.ext { border-left: 4px solid #d4574e; }
.bk-ext { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; }
.bk-ext small { color: var(--muted); font-size: .82rem; }
.bk-ext .btn { padding: 9px 16px; font-size: .88rem; }
.bk-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip-btn.danger { color: #9a2a1f; }
.chip-btn.danger:hover { border-color: #9a2a1f; }
.bk-refund { margin: 10px 0 0; font-size: .88rem; font-weight: 600; color: #1d6b3c; }
.bk-form { margin-top: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.bk-form[hidden] { display: none; }
.bk-form h4 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.1rem; }
.bk-form p { margin: 0; }
.bk-form .admin-hint { margin: 0; }
.bk-radio { display: flex; align-items: center; gap: 8px; font-size: .92rem; flex-wrap: wrap; cursor: pointer; }
.admin-input.sm { width: 130px; }
.admin-input.sm input { padding: 6px 4px; font-size: .9rem; }
.bk-form textarea, .bk-refund-row input[type=text] { border: 1px solid #c9c4ba; border-radius: 10px; padding: 9px 10px; font: 500 .9rem Inter, sans-serif; width: 100%; box-sizing: border-box; background: #fff; resize: vertical; }
.bk-refund-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
.bk-form-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.bk-form-btns .btn { padding: 10px 18px; font-size: .9rem; }
.btn.danger { background: #b23a2e; }
.btn.danger:hover { background: #962f25; }
@media (max-width: 640px) {
  .bk-refund-row { grid-template-columns: 1fr; }
  .rs-filters select { flex: 1; }
}

/* Owner page: tighter top, sideways-scrolling tabs on phones */
.admin #editor { padding-top: 0; }
@media (max-width: 640px) {
  .owner-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-top: 18px; }
  .owner-nav::-webkit-scrollbar { display: none; }
  .owner-nav button { flex: 0 0 auto; padding: 12px 14px; }
}

/* Owner page: six price fields, card-fee preview */
.admin-fields.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fee-preview { grid-column: 1 / -1; margin: 4px 0 0; padding: 10px 14px; background: #eef3f8; border-radius: 10px; font-size: .88rem; color: var(--navy); }
.fee-preview:empty { display: none; }
@media (max-width: 760px) { .admin-fields.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Cancellation policy: home page, booking box, booking page, owner page */
.policy-block + .policy-block { margin-top: 18px; }
.policy h3 { font: 600 1rem Inter, sans-serif; margin: 0 0 8px; color: var(--ink); }
.policy h3 b { color: var(--navy); }
.policy h3 small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.policy ul { margin: 0; padding-left: 20px; color: var(--muted); }
.policy li { margin: 0 0 6px; }
.policy-note { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }
.policy-foot { margin: 16px 0 0; font-size: .88rem; color: var(--muted); }
.book .cancel-line { font-size: .86rem; color: #1d6b3c; margin: -4px 0 14px; }
.book .cancel-line a { color: var(--navy); font-weight: 600; margin-left: 2px; white-space: nowrap; }
.booking-policy { margin: 0 0 24px; padding: 16px 18px; background: #faf8f4; border: 1px solid var(--line); border-radius: 12px; }
.booking-policy .policy-foot { margin-top: 10px; }
.cancel-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cancel-picks label > span { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cancel-picks select { width: 100%; border: 1px solid #c9c4ba; border-radius: 10px; padding: 10px 8px; font: 500 .95rem Inter, sans-serif; background: #fff; color: var(--ink); }
.cancel-picks ul { margin: 8px 0 0; padding-left: 18px; font-size: .84rem; color: var(--muted); }
.cancel-picks li { margin-bottom: 3px; }
.bk-policy { margin: 0 0 10px; padding: 10px 12px; background: #eef3f8; border-radius: 10px; font-size: .86rem; color: var(--navy); }
.bk-radio .why { flex: 0 0 100%; box-sizing: border-box; padding-left: 24px; margin-top: -4px; font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .cancel-picks { grid-template-columns: 1fr; } }
/* Guest reservation page (trip.html) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trip { padding-bottom: 60px; }
.trip-signin { max-width: 520px; }
.trip-fields { display: grid; gap: 12px; margin: 18px 0 16px; }
.trip-fields label span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.trip-fields input { width: 100%; box-sizing: border-box; border: 1px solid #c9c4ba; border-radius: 10px; padding: 12px; font: 500 1rem Inter, sans-serif; color: var(--ink); background: #fff; }
.trip-fields input:focus { outline: 2px solid var(--navy); border-color: transparent; }
.trip-signin .btn { width: 100%; }
.trip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 40px 0 22px; }
.trip-head h1 { font-size: 2.1rem; margin: 0; }
.trip-id { margin: 6px 0 0; color: var(--muted); }
.trip-id b { font-family: ui-monospace, Menlo, monospace; color: var(--ink); font-weight: 600; }
.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.trip-chat { padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: baseline; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 1.3rem; margin: 0; }
.chat-with { color: var(--muted); font-size: .9rem; }
.chat-list { padding: 18px 22px; max-height: 62vh; min-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; background: #fcfbf8; }
.chat-empty { color: var(--muted); text-align: center; margin: auto 0; }
.chat-msg { max-width: 82%; align-self: flex-start; }
.chat-msg.me { align-self: flex-end; text-align: right; }
.chat-msg .bubble { display: inline-block; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 11px 14px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-msg.me .bubble { background: var(--navy); color: #fff; border-color: var(--navy); border-radius: 16px 16px 4px 16px; }
.chat-msg.me .bubble a { color: #fff; }
.chat-msg.auto .bubble, .chat-msg.me.auto .bubble { background: #f1f5f9; color: var(--ink); border-color: #dbe3ec; }
.chat-msg.me.auto .bubble a { color: var(--navy); }
.bubble-title { display: block; margin-bottom: 6px; color: var(--navy); }
.chat-msg small { display: block; margin-top: 4px; font-size: .76rem; color: var(--muted); }
.chat-compose { border-top: 1px solid var(--line); padding: 14px 22px 16px; }
.chat-compose textarea { width: 100%; box-sizing: border-box; border: 1px solid #c9c4ba; border-radius: 12px; padding: 11px 12px; font: 400 .98rem Inter, sans-serif; resize: vertical; min-height: 76px; }
.chat-compose textarea:focus { outline: 2px solid var(--navy); border-color: transparent; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.chat-bar small { color: var(--muted); font-size: .82rem; }
.chat-compose .msg { margin: 8px 0 0; font-size: .88rem; }
.chat-compose .msg:empty { display: none; }
.msg.err { color: #9a3d21; }
.trip-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; position: sticky; top: 92px; }
.trip-photo { display: block; width: 100%; aspect-ratio: 18 / 11; object-fit: cover; }
.trip-card-body { padding: 18px 20px 6px; }
.trip-home { font-size: 1.2rem; margin: 10px 0 2px; }
.trip-town { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.trip-rows { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0 0 16px; font-size: .94rem; }
.trip-rows dt { color: var(--muted); }
.trip-rows dd { margin: 0; text-align: right; font-weight: 600; }
.trip-rows dd small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.trip-view { width: 100%; box-sizing: border-box; margin-bottom: 14px; }
.trip-policy { border-top: 1px solid var(--line); padding: 16px 20px 18px; font-size: .9rem; }
.trip-policy .policy-foot { margin-top: 10px; }
@media (max-width: 900px) {
  .trip-grid { grid-template-columns: 1fr; }
  .trip-card { position: static; }
  .trip-head { margin-top: 26px; }
  .trip-head h1 { font-size: 1.7rem; }
  .chat-list { max-height: none; min-height: 160px; }
  .chat-msg { max-width: 92%; }
  .chat-head, .chat-list, .chat-compose { padding-left: 16px; padding-right: 16px; }
}
.booking-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Owner page: Inbox */
.nav-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #c0392b; color: #fff; font: 700 .72rem/1.4 Inter, sans-serif; text-align: center; font-style: normal; vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.chip-btn.hot { border-color: #c0392b; color: #9a2a1f; }
.inbox { display: grid; grid-template-columns: 330px minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; min-height: 520px; }
.ib-list { border-right: 1px solid var(--line); max-height: 72vh; overflow-y: auto; }
.ib-none { padding: 18px; }
.ib-item { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: 13px 16px; cursor: pointer; font: inherit; color: var(--ink); }
.ib-item:hover { background: #faf8f4; }
.ib-item.on { background: #eef3f8; }
.ib-top { display: flex; justify-content: space-between; gap: 8px; }
.ib-top small { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.ib-meta { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ib-snip { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-top: 5px; overflow: hidden; }
.ib-snip { white-space: nowrap; text-overflow: ellipsis; }
.ib-item.unread b, .ib-item.unread .ib-snip { color: var(--ink); font-weight: 700; }
.ib-thread { display: flex; flex-direction: column; min-width: 0; }
.ib-empty { margin: auto; padding: 40px 20px; text-align: center; }
.ib-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.ib-head > div { flex: 1; min-width: 0; }
.ib-head small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; overflow-wrap: anywhere; }
.ib-back { display: none; }
.ib-msgs { flex: 1; max-height: 56vh; }
.ib-thread .chat-compose .msg.ok { color: #1d6b3c; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; min-height: 0; }
  .ib-list { border-right: 0; max-height: none; }
  .inbox.reading .ib-list { display: none; }
  .inbox:not(.reading) .ib-thread { display: none; }
  .ib-back { display: inline; }
  .ib-head { flex-wrap: wrap; justify-content: space-between; padding: 12px 14px; }
  .ib-head > div { flex: 1 1 100%; order: 3; }
  .ib-msgs { max-height: 60vh; }
}
