@font-face {
  font-family: Marcellus;
  src: url("/assets/fonts/marcellus-latin-be9d4883.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/assets/fonts/inter-latin-c9407645.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #501e2c;
  --text: #4a3529;
  --paper: #fbf1db;
  --line: #c5aa82;
  --accent: #782b42;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .4; }
:focus-visible { outline: 3px solid #1d6559; outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: var(--ink); }
.portal {
  max-width: 1580px;
  min-height: 100vh;
  margin: auto;
  padding: clamp(1rem, 3vw, 2.75rem);
  background:
    url("/assets/welcome/corner-botanical-69ee2a91.webp") left top / min(25vw, 300px) auto no-repeat,
    radial-gradient(ellipse at top, #fff9e9, transparent 55%);
}
.portal-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-family: Marcellus, serif; }
.brand img { width: 40px; height: 40px; padding: 4px; background: var(--ink); border-radius: 2px; }
.portal-intro {
  text-align: center;
  padding: 1.8rem 0 1.2rem;
  background: url("/assets/location/compass-rose-ba315e38.png") right 8% center / 100px auto no-repeat;
}
.portal-intro p { margin: .5rem 0; }
.eyebrow { color: var(--ink); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: Marcellus, serif; font-weight: 400; color: var(--ink); }
h1 { margin: .3rem 0; font-size: clamp(2.5rem, 6vw, 5rem); }
.stay-times { font-size: .9rem; }
.calendar-navigation { display: flex; align-items: stretch; gap: .4rem; margin: 1rem 0; }
.stay-dates { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: 1; gap: .25rem; min-width: 0; }
.date-button, .week-button, .secondary, .add-service {
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #fff9e9;
  color: var(--ink);
}
.date-button { display: grid; justify-items: center; gap: .2rem; min-height: 58px; padding: .4rem .15rem; font-size: .8rem; }
.date-button[aria-current] { border-color: var(--accent); box-shadow: inset 0 -3px var(--accent); }
.date-marks { min-height: 8px; display: flex; gap: 4px; }
.mark { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.mark-booked { background: #31583f; color: #31583f; }
.mark-planned { color: #85571e; }
.week-button { width: 36px; flex-shrink: 0; font-size: 1.6rem; }
.stay-grid {
  display: grid;
  grid-template-columns: 7rem repeat(7, minmax(0, 1fr));
  grid-template-rows: minmax(3.8rem, auto) repeat(4, minmax(6rem, auto));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stay-day, .period-labels { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; min-width: 0; }
.day-heading, .period, .period-label {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: .65rem;
}
.day-heading, .period-label { background: #f4e5c9; }
.day-heading h2 { margin: 0; font-size: 1.1rem; }
.arrival-note { margin: .35rem 0 0; color: var(--ink); font-size: .75rem; font-weight: 650; }
.airport-rides { display: grid; gap: .35rem; margin-top: .55rem; }
.period-label { font-size: .85rem; color: var(--ink); }
.period { display: flex; flex-direction: column; align-items: stretch; gap: .45rem; }
.period.closed { background: repeating-linear-gradient(135deg, transparent 0 8px, #876c4322 8px 9px); }
.closed-note { margin: .2rem 0; font-size: .8rem; }
.mobile-period { display: none; }
.service-card {
  width: 100%; display: grid; gap: .4rem; text-align: left; padding: .55rem;
  border: 1px solid #9c9273; border-radius: .5rem; color: var(--text); background: #fffaf0;
  overflow-wrap: anywhere;
}
.service-card strong { font-family: Marcellus, serif; color: var(--ink); font-size: 1.05rem; }
.service-card[data-state="planned"] { border-style: dashed; border-color: #9a702a; }
.card-detail { font-size: .75rem; line-height: 1.4; }
.badges { display: flex; flex-wrap: wrap; gap: .25rem; }
.badge { padding: .23rem .4rem; border-radius: .75rem; background: #efe2c7; font-size: .69rem; }
[data-state="confirmed"] .booking-badge { background: #e4eddc; color: #23462e; }
[data-state="awaiting"] .booking-badge { background: #f0dce6; color: #54283b; }
.payment-badge { background: #e0ece7; color: #214e44; }
.add-service { align-self: start; min-height: 36px; padding: .35rem .5rem; font-size: .76rem; }
.secondary, .primary { min-height: 44px; padding: .6rem .85rem; }
.primary { border: 1px solid var(--accent); border-radius: .5rem; color: #fff9e9; background: var(--accent); }
.portal-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; }
.review-bar { display: flex; align-items: center; gap: 1rem; background: #f1e2c7; padding: .5rem .65rem; border-radius: .65rem; }
.review-bar p { margin: 0; }
dialog { width: min(32rem, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: .8rem; background: var(--paper); color: var(--text); }
dialog::backdrop { background: #32212480; }
dialog form { display: grid; gap: .75rem; }
dialog > form { margin-top: 1rem; }
dialog .replacement-card {
  min-height: 44px;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #fff9e9;
}
dialog .replacement-card:focus-within { outline: 3px solid #1d6559; outline-offset: 3px; }
dialog label { display: grid; gap: .2rem; }
dialog .payment-consent { display: flex; align-items: start; gap: .6rem; min-height: 44px; }
dialog .payment-consent input { min-height: 0; margin-top: .3rem; accent-color: var(--accent); }
dialog input, dialog select { min-height: 44px; padding: .35rem; border: 1px solid var(--line); border-radius: .4rem; background: #fff9e9; }
@media (min-width: 1041px) and (hover: hover) {
  .period .add-service { opacity: .24; border-color: transparent; background: transparent; }
  .period:hover .add-service, .period:focus-within .add-service { opacity: 1; }
}
@media (max-width: 1040px) {
  .stay-grid { display: block; border: 1px solid var(--line); border-bottom: 0; }
  .period-labels, .stay-day[data-current="false"] { display: none; }
  .stay-day { display: block; }
  .day-heading, .period { border-right: 0; padding: .8rem; }
  .mobile-period { display: block; margin: 0; font-size: 1.06rem; }
  .add-service { min-height: 44px; }
  .portal-intro { background-size: 65px; background-position: right top; }
}
@media (max-width: 560px) {
  .portal-intro { background-image: none; padding-top: 1.25rem; }
  .stay-dates { grid-auto-columns: minmax(44px, 1fr); overflow-x: auto; padding: 4px; }
  .date-button { font-size: .69rem; }
  .week-button { width: 28px; }
  .calendar-navigation { gap: .2rem; }
  .portal-actions { flex-direction: column; align-items: stretch; }
  .review-bar { flex-wrap: wrap; position: sticky; bottom: .5rem; }
  .review-bar button { flex: 1; }
}
.sign-in {
  max-width: 33rem;
  margin: 2rem auto;
  padding: clamp(1rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #fff9e9;
}
.sign-in h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
.sign-in form, .sign-in label, [data-stay-list] { display: grid; gap: .6rem; }
.sign-in input {
  min-width: 0;
  min-height: 44px;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: white;
}
.portal-message { max-width: 50rem; margin: .75rem auto; text-align: center; }
.portal-message:empty { display: none; }

.service-details { display: grid; gap: .75rem; }
.service-details label[hidden] { display: none; }
.service-editor-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.service-editor output:empty, #sheet-body [role="status"]:empty { display: none; }
.service-editor output { font-weight: 700; }
.location-results:not([hidden]) { display: grid; gap: .45rem; background: #fff; border: 1px solid var(--line); }
.location-results [aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.maps-attribution { height: 17px; width: auto; margin: 10px 10px 5px; }
