/* Matches the look of the motel's own site: charcoal, cream, brick red and a little tan, in Jost. */
:root { --char: #2a2b2a; --char-2: #353635; --cream: #fdf7ec; --tan: #f7c58d; --red: #ea3642; --red-deep: #c92a36; --ink: #2a2b2a; --muted: #b9b6ad; --ok: #2f9e6d; --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--char); color: var(--cream); font: 400 18px/1.5 var(--font); }
.wrap { max-width: 760px; margin: 0 auto; padding: 28px 16px 80px; }
.center { text-align: center; } .muted { color: var(--muted); } .small { font-size: .88rem; }
h1 { font: 800 clamp(2rem, 7vw, 2.8rem)/1.1 var(--font); margin: 6px 0 6px; color: var(--cream); }
h1 em { font-style: normal; color: var(--tan); }
h2 { font: 600 1.25rem/1.2 var(--font); margin: 0 0 6px; }
.lead { color: var(--cream); opacity: .9; margin: 0 0 18px; }
a { color: var(--tan); } .card a:not(.btn) { color: var(--red-deep); }

.card { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 20px; margin-bottom: 16px; box-shadow: 0 8px 0 var(--red); }
.card .muted { color: #5a5b59; }
.card.plain { box-shadow: none; background: var(--char-2); color: var(--cream); border: 2px solid #4a4b49; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font: 600 .9rem/1.2 var(--font); margin: 0 0 6px; letter-spacing: .02em; }
input, select, textarea { width: 100%; font: 500 1.05rem/1.2 var(--font); padding: 13px 12px; border: 2px solid #cfc6b3; border-radius: 12px; background: #fff; color: var(--ink); }
/* iPhone Safari draws date fields with its own width and alignment: make them fill the column like the other fields */
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; height: 52px; margin: 0; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
input[type="date"]::-webkit-datetime-edit { padding: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 0 0 0 8px; }
select { -webkit-appearance: none; appearance: none; height: 52px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232a2b2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; }
.grid > div { min-width: 0; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--tan); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; } .check input { width: 22px; height: 22px; margin-top: 3px; flex: none; }

button, .btn { display: inline-block; width: 100%; margin-top: 16px; padding: 16px 20px; border: 0; border-radius: 14px; cursor: pointer; text-align: center; text-decoration: none; font: 800 1.1rem/1 var(--font); color: #fff; background: var(--red); box-shadow: 0 4px 0 var(--red-deep); }
button:hover, .btn:hover { background: #f24754; } button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--red-deep); }
button:disabled { opacity: .6; cursor: wait; }
button.ghost, .btn.ghost { background: var(--cream); color: var(--ink); border: 2px solid var(--tan); box-shadow: none; }
button.link { background: none; border: 0; box-shadow: none; color: var(--tan); text-decoration: underline; width: auto; padding: 8px 0; margin-top: 10px; font-weight: 600; }

.room { display: grid; gap: 6px; }
.room h2 { font-size: 1.5rem; font-weight: 800; }
.room .desc { margin: 0; color: #4a4b49; }
.room .left { display: inline-block; font: 600 .85rem/1 var(--font); background: var(--red); color: #fff; border-radius: 99px; padding: 5px 10px; width: fit-content; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.price .big { font: 800 2rem/1 var(--font); } .price .sub { color: #5a5b59; font-size: .95rem; }
.now { background: #f3ead8; border-radius: 12px; padding: 10px 12px; font-size: .95rem; margin-top: 6px; }
dl.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin: 8px 0 0; } dl.sum dt { color: #4a4b49; padding-right: 14px; } dl.sum dd { margin: 0; text-align: right; font-weight: 500; }
dl.sum .tot { font-weight: 800; border-top: 2px solid #cfc6b3; padding-top: 8px; margin-top: 4px; } dl.sum .due { color: var(--red-deep); font-weight: 800; }
.msg { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 500; } .msg.err { background: #fde4e4; color: #7a1c1c; border: 2px solid var(--red); } .msg.ok { background: #e2f4ea; color: #14573a; }
.none { text-align: center; padding: 28px 12px; }
.done h1 { color: var(--tan); } .done .code { display: inline-block; font: 800 1.6rem/1 var(--font); letter-spacing: .1em; background: var(--char); color: var(--cream); border-radius: 12px; padding: 10px 16px; margin: 8px 0; }
.spin { display: inline-block; width: 22px; height: 22px; border: 3px solid #4a4b49; border-top-color: var(--tan); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
footer { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 30px; }

.pay { min-height: 160px; }

/* framed in another site: keep it plain */
body.embed footer { display: none; }
body.embed .wrap { padding: 8px 4px 24px; max-width: none; }
body.embed h1 { font-size: 1.6rem; margin-top: 0; }
.card.plain .muted { color: var(--muted); }

.cmp { background: #f3ead8; border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: .95rem; }
.cmp-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; } .cmp-row span { color: #4a4b49; }
.cmp-note { margin-top: 6px; padding-top: 6px; border-top: 1px dotted #cfc6b3; color: #4a4b49; font-size: .9rem; }
dl.sum .sub-note { color: #7a7b79; font-size: .9rem; }
.cmp-row span { white-space: nowrap; } .cmp-row b { text-align: right; }

/* a short explanation that opens on hover, keyboard focus or tap */
.tip { position: relative; display: inline-block; margin-left: 6px; }
.tip-btn { font: 600 .88rem/1.2 var(--font); text-decoration: underline dotted; cursor: help; outline-offset: 3px; color: inherit; }
.tip-body { display: none; position: absolute; z-index: 5; left: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 72px)); padding: 12px 14px; border-radius: 12px; background: #2a2b2a; color: #fdf7ec; font: 400 .92rem/1.45 var(--font); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.tip:hover .tip-body, .tip:focus-within .tip-body { display: block; }

/* the file picker for the card photo: the real input hides, its label is the button */
.btn-file { display: block; text-align: center; cursor: pointer; margin-top: 4px; padding: 14px 18px; border-radius: 14px; font: 800 1rem/1 var(--font); color: var(--ink); background: var(--cream); border: 2px solid var(--tan); }
input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
input[type=file]:focus-visible + .btn-file { outline: 3px solid var(--tan); outline-offset: 2px; }


/* availability calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 1.15rem; }
.cal .cal-nav { width: 44px; height: 44px; margin: 0; padding: 0; font-size: 1.5rem; line-height: 1; background: var(--cream); color: var(--ink); border: 2px solid var(--tan); box-shadow: none; }
.cal .cal-nav:hover { background: var(--tan); } .cal .cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font: 600 .75rem/1 var(--font); letter-spacing: .08em; color: #5a5b59; padding: 4px 0; }
.cal .cal-day { margin: 0; padding: 0; width: 100%; aspect-ratio: 1; min-height: 40px; border-radius: 10px; font: 600 1rem/1 var(--font); color: var(--ink); background: #fff; border: 2px solid #cfc6b3; box-shadow: none; cursor: pointer; }
.cal .cal-day:hover:not(:disabled) { border-color: var(--red); background: #fff; }
.cal .cal-day:active { transform: none; box-shadow: none; }
.cal .cal-day.st-f { background: var(--tan); border-color: #e8ae6c; }
.cal .cal-day.st-x, .cal .cal-day.st-past, .cal .cal-day.st-beyond { background: #ece6d8; border-color: #e2dccd; color: #9a968c; }
.cal .cal-day.st-x { text-decoration: line-through; }
.cal .cal-day:disabled { cursor: not-allowed; opacity: 1; }
.cal .cal-day.st-past:disabled, .cal .cal-day.st-beyond:disabled { opacity: .55; }
.cal .cal-day.dep { cursor: pointer; border-style: dashed; border-color: var(--red); color: var(--ink); }
.cal .cal-day.rng { background: #fde0e2; border-color: #f5b5ba; text-decoration: none; }
.cal .cal-day.sel, .cal .cal-day.sel:hover { background: var(--red); border-color: var(--red-deep); color: #fff; text-decoration: none; }
.cal .cal-day.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-key { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .88rem; color: #5a5b59; }
.cal-key .k::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; border: 2px solid #cfc6b3; background: #fff; }
.cal-key .few::before { background: var(--tan); border-color: #e8ae6c; } .cal-key .full::before { background: #ece6d8; border-color: #e2dccd; }
.cal-hint { margin: 10px 0 0; } .cal .cal-hint .link { color: var(--red-deep); margin: 0; padding: 0; }

textarea { resize: vertical; min-height: 110px; }
