/* Hotel websites (D-048): the AthithiGo theme's language for guests. No scripts, no external assets.
   Light only, like the staff console's default (D-051, D-052). */
:root {
  color-scheme: light;
  --bg: #fff; --subtle: #f7f7f7; --text: #222; --muted: #606060; --border: #e4e4e4; --field: #858585;
  --accent: #c4204e; --accent-text: #fff; --accent-hover: #a3173f; --danger: #a12912;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
main:focus { outline: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px 14px; z-index: 2; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.preview { margin: 0; padding: 10px 16px; background: var(--text); color: var(--bg); text-align: center; }

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.name { font-size: 22px; font-weight: 700; color: var(--accent); text-decoration: none; }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.top nav a:not(.button) { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
/* Language links (D-052): plain links, because these pages run no scripts and set no cookies. */
.top nav.langs { margin-left: 0; gap: 2px; font-size: 14px; }
.top nav.langs a, .langs span { padding: 6px 10px; border-radius: 999px; }
.langs span { font-weight: 700; background: var(--subtle); }
main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 20px 56px; flex: 1 0 auto; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 1.3; margin: 40px 0 12px; }
h3 { font-size: 19px; margin: 10px 0 4px; }
.lead { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--danger); font-weight: 600; }

button, .button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: 999px; background: var(--accent); color: var(--accent-text);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: var(--accent-hover); }
label { display: block; font-size: 13px; color: var(--muted); }
input, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--field); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.search {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; align-items: end;
  margin: 22px 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: 32px; box-shadow: 0 4px 14px rgb(0 0 0 / .08);
}
.gallery, .cards, .offers, .pills { list-style: none; padding: 0; margin: 20px 0; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.gallery img, .cards img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.cards > li { padding: 14px; border: 1px solid var(--border); border-radius: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 3px 12px; border-radius: 999px; background: var(--subtle); font-size: 14px; }
.offers > li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-bottom: 16px; padding: 18px 22px; border: 1px solid var(--border); border-radius: 22px; }
.offers > li > div { flex: 1 1 260px; min-width: 0; }
.offers .price { flex: 0 1 240px; }
.price strong { font-size: 24px; }
.price p { margin: 2px 0 8px; }
.policy { padding-left: 18px; color: var(--muted); font-size: 14px; }
address { font-style: normal; }

.summary { max-width: 680px; margin: 20px 0; padding: 18px 22px; border: 1px solid var(--border); border-radius: 22px; }
.summary h2 { margin-top: 0; }
dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; }
dd { margin: 0; text-align: right; }
.details { max-width: 680px; }
.field { margin-bottom: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 15px; margin: 14px 0; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; accent-color: var(--accent); }
details { max-width: 680px; margin: 10px 0; }
summary { cursor: pointer; padding: 4px 0; }
footer { padding: 20px; border-top: 1px solid var(--border); background: var(--subtle); text-align: center; font-size: 14px; }
footer p { margin: 4px 0; }
footer a { color: var(--text); margin: 0 6px; }
@media (max-width: 480px) {
  .top { padding: 12px 16px; }
  .top nav { margin-left: 0; width: 100%; }
  .top nav.langs { width: auto; }
  .search { border-radius: 22px; padding: 16px; }
}

/* D-058: the guest's booking page, change and find pages */
.button.secondary, button.secondary { background: var(--bg); color: var(--text); border-color: var(--field); }
.button.secondary:hover, button.secondary:hover { background: var(--subtle); }
button.danger { background: var(--danger); }
button.danger:hover { background: #7f200e; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0; }
.details .field + .muted { margin: -8px 0 14px; }
.field .muted { margin: 4px 0 0; }
.ref { font-size: 18px; }
.ref strong { letter-spacing: .04em; }
.summary.note { border-left: 6px solid var(--accent); }
.keep { max-width: 680px; margin: 20px 0; padding: 14px 22px; border-radius: 22px; background: var(--subtle); }
.keep h2 { margin-top: 4px; font-size: 19px; }

/* A printed or saved-as-PDF confirmation: the booking, without the site's navigation or buttons. */
@media print {
  .top nav, .langs, .skip, .no-print, .actions, .preview, footer p:last-child { display: none !important; }
  body { font-size: 12pt; }
  .summary, .keep { break-inside: avoid; border-color: #999; }
  a { color: inherit; text-decoration: none; }
}
/* D-063: every room photo, photos open full size, and a photo beside each price */
.gallery a, .cards a:has(> img) { display: block; border-radius: 18px; }
.cards .thumbs { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cards .thumbs img { width: 72px; height: 54px; aspect-ratio: auto; border-radius: 10px; }
.offers .offer-photo { flex: 0 0 160px; width: 160px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
@media (max-width: 560px) { .offers .offer-photo { flex-basis: 100%; width: 100%; } }

/* D-066: "from" prices on room cards and the hotel list */
.from { font-size: 1.05rem; }
