/* Miramont public sites. Photo heroes with a framed search bar, uppercase Outfit for headings and
   navigation, system font for text. Colours: ocean teal (actions), sun yellow from the logo (search
   frame, highlights), near-black ink, cool greys. */
@font-face { font-family: "Outfit"; src: url(/assets/fonts/outfit-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Outfit"; src: url(/assets/fonts/outfit-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --ink: #14232a;
  --muted: #5c6b70;
  --ocean: #0a6273;
  --ocean-dark: #083f4a;
  --night: #0f2329;
  --sun: #f6b81a;
  --sun-soft: #fff4d6;
  --soft: #f3f6f7;
  --line: #dfe5e7;
  --card: #ffffff;
  --coral: #e2552d;
  --ok: #1f7a4a;
  --sea: var(--ocean);
  --sea-dark: var(--ocean-dark);
  --sand: #f3f6f7;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(15, 35, 41, 0.1);
  --head: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--ocean); }
img { max-width: 100%; display: block; }
input, textarea, select { max-width: 100%; }
h1, h2, h3, legend { font-family: var(--head); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1180px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }

/* top bar + header */
.topbar { background: var(--night); color: #dfe8ea; font-size: 0.85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 12px; }
.topbar nav.top { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topnote { opacity: 0.8; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand-sub { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--ocean); border-left: 2px solid var(--sun); padding-left: 12px; line-height: 1.2; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a:not(.btn) { font-family: var(--head); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; font-size: 0.95rem; color: #4a585d; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--ocean); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ocean); color: #fff; border: 0; border-radius: 6px; padding: 11px 20px; font-family: var(--head); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--ocean-dark); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.btn.secondary { background: transparent; color: var(--ocean); box-shadow: inset 0 0 0 1.5px var(--ocean); }
.btn.secondary:hover { background: var(--soft); }
.btn[aria-disabled="true"] { background: #c4cdd0; pointer-events: none; }

/* hero */
.hero { background: linear-gradient(160deg, var(--ocean-dark), var(--ocean)); color: #fff; padding: 56px 0; }
.hero.photo { position: relative; overflow: hidden; min-height: clamp(380px, 52vw, 560px); display: grid; place-items: center; padding: 64px 20px 96px;
  background: linear-gradient(180deg, rgba(8, 40, 48, 0.25), rgba(8, 40, 48, 0.55)), var(--photo) center / cover no-repeat; }
.hero.photo.short { min-height: clamp(260px, 30vw, 340px); }
.hero.photo::before, .hero.photo::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26%; background: rgba(10, 98, 115, 0.55); pointer-events: none; }
.hero.photo::before { left: 0; clip-path: polygon(0 0, 100% 0, 35% 100%, 0 100%); }
.hero.photo::after { right: 0; clip-path: polygon(80% 0, 100% 0, 100% 100%, 0 100%); background: rgba(10, 98, 115, 0.7); }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; }
.hero h1 { margin: 0 0 12px; font-family: var(--head); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.05; letter-spacing: 0.01em; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25); }
.hero p { margin: 0 auto; max-width: 620px; font-size: clamp(1.05rem, 2vw, 1.3rem); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.chip { display: inline-block; background: #fff; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; }
.chip.light { margin-bottom: 14px; }

/* framed search bar overlapping the hero */
.searchband { position: relative; z-index: 3; max-width: 1100px; margin: -48px auto 0; padding: 0 20px; }
.searchbar { display: flex; gap: 4px; padding: 4px; background: var(--sun); border-radius: 10px; box-shadow: var(--shadow); }
.searchbar .field { flex: 1 1 0; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 6px; padding: 8px 14px; min-height: 60px; color: var(--ocean); cursor: pointer; flex-direction: row; font-weight: 400; min-width: 0; }
.searchbar .field.narrow-field { flex: 0 0 150px; }
.searchbar .field > span { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.searchbar small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.searchbar .field select, .searchbar .field input { border: 0; padding: 2px 0; min-height: 0; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); background: transparent; width: 100%; outline-offset: 4px; -webkit-appearance: none; appearance: none; }
.searchbar select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a6273' stroke-width='2'/%3E%3C/svg%3E") right center no-repeat; padding-right: 18px; }
.searchbar .search-btn { flex: 0 0 auto; min-height: 60px; padding: 0 32px; font-size: 1.15rem; border-radius: 6px; }
.searchnote { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 10px 0 0; }
.searcherror { margin-top: 10px; }
@media (max-width: 820px) {
  .searchbar { flex-direction: column; }
  .searchbar .field.narrow-field { flex-basis: auto; }
  .searchbar .search-btn { width: 100%; }
  .searchband { margin-top: -36px; }
}

main { padding: 40px 0 72px; }
.section-title { text-align: center; margin: 48px auto 28px; max-width: 720px; }
.section-title:first-child { margin-top: 8px; }
.section-title h2 { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; }
.section-title h2::after { content: ""; display: block; width: 72px; height: 3px; background: var(--ocean); margin: 14px auto 0; }
.section-title p { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }
.center { text-align: center; }
.empty { text-align: center; color: var(--muted); background: var(--soft); border-radius: var(--radius); padding: 24px; }
h2 { font-size: 1.5rem; margin: 0 0 16px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.hint, label .hint { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.back { display: inline-block; margin-bottom: 16px; text-decoration: none; font-weight: 600; }

/* trip cards */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .chip { position: absolute; left: 12px; top: 12px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--ocean); }
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.when-line { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.95rem; }
.when-line .icon { color: var(--ocean); }
.card .buy { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price { font-family: var(--head); font-weight: 700; font-size: 1.5rem; white-space: nowrap; }
.price small { font-family: system-ui, sans-serif; font-weight: 400; color: var(--muted); font-size: 0.85rem; }

/* why / how cards */
.why { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.why-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.why-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sun-soft); color: var(--ocean); margin-bottom: 12px; }
.why-card h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; }
.why-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* trip page */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 8px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:last-child { display: none; } }
.deps { display: flex; flex-direction: column; gap: 14px; max-width: 980px; margin: 0 auto; }
.dep { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ocean); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 14px; grid-template-columns: 1fr; }
.dep .when { font-family: var(--head); font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.villa-note { display: flex; align-items: center; gap: 6px; }
.dep .facts { display: grid; gap: 8px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0 0; }
.dep .facts div { display: flex; flex-direction: column; }
.dep .facts dt { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dep .facts dd { margin: 0; font-weight: 600; }
@media (min-width: 720px) { .dep { grid-template-columns: 1fr auto; align-items: center; } .dep .facts { grid-template-columns: repeat(4, minmax(0, auto)); } }
.pill { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #fde7dc; color: #9a3412; }
.pill.ok { background: #dcf3e5; color: var(--ok); }

/* forms */
form.book { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 22px; max-width: 720px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
legend { font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], textarea, select {
  font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; min-height: 44px; width: 100%; min-width: 0;
}
input[type=date] { -webkit-appearance: none; appearance: none; }
input:focus, textarea:focus, select:focus { border-color: var(--ocean); }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.row2 > label, .row3 > label { min-width: 0; }
.companion { display: flex; gap: 8px; align-items: end; }
.companion label { flex: 1; }
.linkbtn { background: none; border: 0; color: var(--ocean); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 0; text-align: left; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ocean); }
.summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.error { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c12; border-radius: 8px; padding: 12px 14px; }
.rooms { display: flex; flex-direction: column; gap: 12px; }
.room { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.room input { width: 84px; }
.price-line { font-family: var(--head); font-weight: 700; font-size: 1.3rem; white-space: nowrap; }

/* room cards (villa) */
.roomcard { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 18px; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.roomcard > img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.roominfo { padding: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.roominfo h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.roominfo p { margin: 0; display: flex; align-items: center; gap: 6px; }
.avail { font-weight: 600; font-size: 0.95rem; }
.avail.ok { color: var(--ok); }
.avail.none { color: #9a3412; }
.roomprice { padding: 16px 18px 16px 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; text-align: right; }
.roomprice .btn { margin-top: 8px; }
.roomprice .qty input { width: 96px; text-align: center; margin-top: 8px; }
.roomcard[data-available="0"] .price-line { color: var(--muted); font-weight: 400; text-decoration: line-through; }
.roomcard[data-available="0"] > img { filter: grayscale(0.7); opacity: 0.8; }
@media (max-width: 640px) {
  .roomcard { grid-template-columns: 1fr; gap: 0; }
  .roomcard > img { aspect-ratio: 16 / 9; height: auto; }
  .roominfo { padding: 14px 16px 0; }
  .roomprice { padding: 10px 16px 16px; align-items: flex-start; text-align: left; }
}
.catalogue { max-width: 980px; margin: 0 auto; }
.results { display: flex; flex-direction: column; gap: 18px; }
.results-head h2 { margin: 0; }
.results-head p { margin: 4px 0 0; }

/* form + sticky summary */
.with-summary { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .with-summary { grid-template-columns: minmax(0, 1fr) 340px; } .staycard { position: sticky; top: 16px; } }
.with-summary form.book { max-width: none; }
.staycard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.staycard > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.staybody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.staybody h3 { margin: 0; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; color: var(--ocean); }
.staytitle { margin: 0; font-family: var(--head); font-weight: 600; font-size: 1.2rem; }
.staytotal { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.staytotal strong { font-family: var(--head); font-size: 1.6rem; }
.staybody .hint { display: flex; gap: 6px; align-items: flex-start; margin: 0; }
.staybody .hint .icon { color: var(--ok); margin-top: 2px; }

.thanks { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.ref { font-family: ui-monospace, Menlo, monospace; font-weight: 700; background: var(--soft); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }

/* footer */
footer.site { background: var(--night); color: #c9d6d9; padding: 40px 0; font-size: 0.95rem; }
footer.site .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
footer.site .about p { margin: 12px 0 0; max-width: 48ch; }
footer.site .about img { height: 40px; width: auto; }
footer.site nav.fcol { display: flex; flex-direction: column; gap: 8px; }
footer.site a { color: #fff; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .fine { grid-column: 1 / -1; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 16px; font-size: 0.85rem; opacity: 0.75; }

@media (max-width: 720px) {
  .topnote { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  nav.main a:not(.btn) { display: none; }
  header.site .wrap { min-height: 68px; }
  .brand img { height: 40px; }
  .brand-sub { font-size: 0.72rem; letter-spacing: 0.1em; }
  nav.main .btn { padding: 8px 14px; font-size: 0.9rem; }
  footer.site .wrap { grid-template-columns: 1fr; }
}

/* booking steps, traveller cards and the details dialog */
.steps { list-style: none; display: flex; align-items: center; gap: 0; margin: 0 0 28px; padding: 16px 20px; background: var(--soft); border-radius: var(--radius); counter-reset: s; overflow-x: auto; }
.steps li { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; color: var(--muted); font-weight: 500; white-space: nowrap; }
.steps li:not(:last-child)::after { content: ""; flex: 1; min-width: 24px; height: 1px; background: #b8c4c7; margin: 0 14px; }
.steps .dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #8a989c; font-size: 0.85rem; font-weight: 700; flex: none; }
.steps li.done .dot { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.steps li.current { color: var(--ink); font-weight: 700; }
.steps li.current .dot { background: var(--ocean); border-color: var(--ocean); color: #fff; }
@media (max-width: 640px) { .steps li:not(.current) .label { display: none; } .steps { padding: 12px 14px; } }
.pagehead { margin-bottom: 24px; }
.pagehead p { margin: 0 0 4px; }
.pagehead h1 { margin: 0; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; font-weight: 700; }
form.book.flat { border: 0; padding: 0; background: none; gap: 32px; }
.fsection { display: flex; flex-direction: column; gap: 12px; }
.fsection > h2, .fsection > legend { margin: 0; font-size: 1.45rem; font-weight: 700; }
.fsection > p.muted { margin: -6px 0 4px; }
.fsection fieldset.contact { gap: 12px; }
.fsection fieldset.contact legend { font-size: 1.45rem; font-weight: 700; }
.req { color: #c2410c; font-weight: 700; }
.travellers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.traveller { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.traveller.enhanced { gap: 10px; }
.thead { display: flex; align-items: center; gap: 12px; }
.ticon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun-soft); color: var(--ocean); flex: none; }
.ttitle { flex: 1; display: flex; flex-direction: column; }
.ttitle h3 { margin: 0; font-size: 1.2rem; font-weight: 600; }
.tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ocean); font-weight: 700; }
.tremove { color: var(--muted) !important; font-size: 0.85rem !important; font-weight: 500 !important; }
.tname { margin: 0; color: #9a3412; font-weight: 600; }
.traveller.filled .tname { color: var(--ink); }
.btn.outline { background: #fff; color: var(--ocean); box-shadow: inset 0 0 0 1.5px var(--ocean); min-height: 40px; padding: 8px 14px; font-size: 0.95rem; }
.btn.outline:hover { background: #eef6f7; }
.traveller.filled .btn.outline { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.addtraveller { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed #9fb0b4; border-radius: var(--radius); background: none; color: var(--ocean); font: inherit; font-family: var(--head); font-weight: 600; font-size: 1rem; min-height: 56px; cursor: pointer; }
.addtraveller:hover { background: #f4f9fa; border-color: var(--ocean); }
.addtraveller[hidden] { display: none; }
.dlg-only { display: none; }
dialog .dlg-only { display: flex; }
dialog.tdialog { border: 0; border-radius: 12px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 20px 60px rgba(15, 35, 41, 0.35); color: var(--ink); }
dialog.tdialog::backdrop { background: rgba(15, 30, 35, 0.55); }
dialog.tdialog .tdetails { display: flex; flex-direction: column; gap: 18px; padding: 20px 24px 0; }
.dlg-head { justify-content: space-between; align-items: center; color: var(--ink); }
.dlg-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; }
.dlg-x:hover { background: var(--soft); }
.warnbox { flex-direction: column; gap: 4px; background: #fff3ed; border: 1px solid #f3a98a; border-radius: 8px; padding: 14px 16px; }
.warnbox strong { font-family: var(--head); font-size: 1.05rem; }
.warnbox p { margin: 0; }
.dlg-foot { justify-content: flex-end; border-top: 1px solid var(--line); margin: 4px -24px 0; padding: 14px 24px; }
.formnav { display: flex; justify-content: flex-end; align-items: center; gap: 28px; padding-top: 4px; }
.backlink { font-weight: 600; text-decoration: none; }
.btn.big { min-height: 52px; padding: 12px 28px; font-size: 1.1rem; }
@media (max-width: 560px) { .formnav { flex-direction: column-reverse; align-items: stretch; gap: 14px; text-align: center; } }

/* admin */
body.admin { background: var(--soft); }
body.admin main { padding-top: 28px; }
body.admin nav.main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ocean); }
body.admin nav.main a.btn { padding: 8px 16px; min-height: 40px; font-size: 0.9rem; }
.logout { display: flex; align-items: center; gap: 14px; }
.logout .who { opacity: 0.85; }
.topbtn { background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; cursor: pointer; font: inherit; font-weight: 600; padding: 2px 12px; }
.topbtn:hover { background: rgba(255,255,255,.1); }
body.admin h2 { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: 1.6rem; }
body.admin .panel h3 { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; color: var(--ocean); }
@media (max-width: 720px) { body.admin nav.main a:not(.btn) { display: inline; font-size: 0.8rem; } body.admin nav.main { gap: 14px; } body.admin nav.main a.btn { display: none; } body.admin header.site .wrap { flex-wrap: wrap; padding-bottom: 8px; } }
.narrow { max-width: 440px; margin: 24px auto; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.filters label { min-width: 150px; flex: 1; }
.filters .check { flex: 0 0 auto; min-width: 0; align-items: center; padding-bottom: 10px; }
select { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; background: #fff; min-height: 44px; width: 100%; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.list th, table.list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #f7f9fa; }
table.list tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; }
.status { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.status.requested { background: #fff1d6; color: #8a5a00; }
.status.confirmed { background: #dcf3e5; color: var(--ok); }
.status.cancelled { background: #eee; color: #666; }
.cols { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 860px) { .cols { grid-template-columns: 3fr 2fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 1.05rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pre { white-space: pre-wrap; }
form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 14px; }
form.inline label { flex: 1; min-width: 160px; }
.actions { display: flex; flex-direction: column; gap: 16px; }
.btn.danger { background: #b42318; }
.notice { background: #e8f5ee; border: 1px solid #b7e0c6; color: #1e5c36; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.history { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ref { white-space: nowrap; }
.titlebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.titlebar h2 { margin: 0; }
form.book.wide { max-width: 760px; }
.modes { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.mode { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.clashes { margin: 8px 0 0; padding-left: 18px; }
.pager { display: flex; gap: 8px; align-items: center; }
.pager input { width: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; }
.legend .cell { padding: 2px 8px; border-radius: 6px; }
.cell.free, .bar .free { background: #dcf3e5; }
.cell.held, .bar .held { background: #fde7b0; }
.cell.trip, .bar .trip { background: #f4b860; }
.cell.direct, .bar .direct { background: #8fc7d0; }
.cell.over { background: #f5c2bd; }
table.cal { border-collapse: collapse; font-size: 0.8rem; }
table.cal th, table.cal td { border: 1px solid var(--line); padding: 4px; text-align: center; min-width: 34px; }
table.cal th.sticky { position: sticky; left: 0; background: #fff; text-align: left; min-width: 150px; z-index: 1; font-size: 0.85rem; }
table.cal th.month { border-left: 2px solid var(--ink); }
table.cal td { vertical-align: bottom; height: 46px; }
table.cal td .bar { display: flex; flex-direction: column-reverse; height: 26px; border-radius: 3px; overflow: hidden; background: #eef2f3; }
table.cal td .bar i { display: block; }
table.cal td b { display: block; font-weight: 600; margin-top: 2px; }
table.cal td.over { background: #fdecea; }
table.cal tr.deprow td.on { background: var(--sea); }
table.cal tr.deprow th { font-weight: 500; }
/* account */
.who-out { display: flex; gap: 10px; align-items: center; }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: 0.9rem; }
.panel.booking .titlebar { margin-bottom: 10px; }
.panel.booking h3 { margin: 0; }
.pay, .docs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.docs ul, .doclist { margin: 4px 0 0; padding-left: 18px; }
.doclist li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
body.admin .linkbtn { background: none; border: 0; color: #b42318; cursor: pointer; font: inherit; font-size: 0.85rem; text-decoration: underline; padding: 0; }
@media (max-width: 480px) { .site-villa nav.main .btn { font-size: 0; padding: 10px 14px; } .site-villa nav.main .btn::after { content: attr(data-short); font-size: 0.9rem; } }
.staycard .kv { grid-template-columns: 1fr auto; }
.staycard .kv dd { text-align: right; font-weight: 600; }
.topbar form { margin: 0; }
.topbtn { line-height: 1.4; font-size: 0.85rem; }
