/* BookingGuest — petrol/travel-atlas identity, light-first with dark support */
:root {
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --ink: #182529;
  --muted: #5C7176;
  --line: #DBE3E1;
  --accent: #0F6470;
  --accent-ink: #FFFFFF;
  --accent-soft: #E1EEEF;
  --good: #2E7D4F;
  --warn: #9A6A00;
  --warn-soft: #F6EEDA;
  --shadow: 0 1px 3px rgba(20, 40, 44, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E181B;
    --surface: #162327;
    --ink: #DFE9E8;
    --muted: #8FA5A9;
    --line: #29393E;
    --accent: #4FB6C2;
    --accent-ink: #06272B;
    --accent-soft: #133238;
    --good: #6DBE8D;
    --warn: #D9A94A;
    --warn-soft: #33290F;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
a { color: var(--accent); }
h1, h2, h3 { font-family: Charter, "Bitstream Charter", Cambria, Georgia, serif; line-height: 1.2; margin: 0; text-wrap: balance; }

.topbar {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: Charter, Cambria, Georgia, serif; font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.sandbox-pill {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--warn-soft); color: var(--warn);
  padding: .2rem .6rem; border-radius: 99px; cursor: help;
}
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.2rem; border-top: 1px solid var(--line); }
.foot p { margin: 0; }

/* ---- hero / search form ---- */
.hero { text-align: center; padding: 2.5rem 0 1rem; }
.hero h1 { font-size: 2.2rem; }
.hero p { color: var(--muted); margin: .6rem 0 0; }
.searchbox {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem; margin-top: 1.6rem;
  display: grid; gap: .8rem;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
}
@media (max-width: 720px) { .searchbox { grid-template-columns: 1fr 1fr; } .searchbox .dest { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .25rem; position: relative; text-align: left; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.btn {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  border: none; border-radius: 8px; padding: .65rem 1.3rem;
}
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.secondary { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: none; color: var(--accent); padding: .4rem .6rem; }
.btn:disabled { opacity: .55; cursor: wait; }

.suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow); margin-top: 4px; max-height: 290px; overflow-y: auto;
}
.suggest button {
  display: flex; justify-content: space-between; gap: .6rem; width: 100%;
  font: inherit; text-align: left; background: none; border: none; cursor: pointer;
  padding: .55rem .8rem; color: var(--ink);
}
.suggest button:hover, .suggest button:focus { background: var(--accent-soft); }
.suggest .kind { color: var(--muted); font-size: .78rem; white-space: nowrap; }

.demo-note { margin-top: 1rem; font-size: .85rem; color: var(--muted); }

/* ---- results ---- */
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem; margin: 1rem 0; }
.results-head h1 { font-size: 1.5rem; }
.results-head .n { color: var(--muted); font-size: .9rem; }
.filters { display: flex; gap: .5rem; margin-left: auto; }
.hotel-card {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: .9rem; margin-bottom: .8rem; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .hotel-card { grid-template-columns: 1fr; } }
.hotel-card img, .imgph {
  width: 100%; height: 100px; object-fit: cover; border-radius: 8px; background: var(--accent-soft);
}
.imgph { display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.6rem; }
.hotel-card h3 { font-size: 1.05rem; }
.hotel-card .meta { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.stars { color: var(--accent); letter-spacing: .1em; font-size: .85rem; }
.card-cta { display: flex; flex-direction: column; justify-content: center; gap: .4rem; align-items: end; }
.card-cta .price { font-weight: 700; white-space: nowrap; }

/* ---- hotel page ---- */
.crumb { font-size: .85rem; margin-bottom: .8rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .5rem; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 180px; object-fit: cover; display: block; background: var(--accent-soft); }
.gallery img:first-child { grid-row: span 2; height: 100%; min-height: 240px; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery img:first-child { grid-row: auto; min-height: 140px; } }
.hotel-head { margin: 1.1rem 0 .3rem; display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; }
.hotel-head h1 { font-size: 1.7rem; }
.addr { color: var(--muted); font-size: .9rem; }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.4rem; margin-top: 1.2rem; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.prose { font-size: .95rem; }
.prose p { margin: .6rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: .2rem .7rem; font-size: .8rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.panel .dates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: .8rem; }
.rate {
  border-top: 1px solid var(--line); padding: .7rem 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center;
}
.rate-thumb { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--accent-soft); }
.rate-thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; margin-top: .6rem; }
.room-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.room-card img { width: 100%; height: 96px; object-fit: cover; display: block; background: var(--accent-soft); }
.room-ph { height: 96px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); font-size: 1.5rem; }
.rc-body { padding: .5rem .6rem; }
.rc-name { font-size: .85rem; font-weight: 600; line-height: 1.3; }
.rc-meta { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.rate .rn { font-size: .92rem; }
.rate .rm { color: var(--muted); font-size: .8rem; }
.rate .price { font-weight: 700; white-space: nowrap; }
.pol { font-size: .78rem; margin-top: .15rem; }
.pol.free { color: var(--good); }
.pol.warn { color: var(--warn); }
.notice { background: var(--warn-soft); color: var(--ink); border-radius: 8px; padding: .6rem .8rem; font-size: .85rem; margin-top: .8rem; }

/* ---- booking ---- */
.book-form { max-width: 460px; margin: 0 auto; }
.book-form .panel { margin-top: 1rem; }
.book-form .field { margin-bottom: .8rem; }
.summary-row { display: flex; justify-content: space-between; font-size: .92rem; padding: .3rem 0; }
.summary-row.total { font-weight: 700; border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .6rem; }
.status-line { display: flex; align-items: center; gap: .6rem; margin: .6rem 0; }
.ok { color: var(--good); font-weight: 600; }
.err { color: #B3261E; font-weight: 600; }
@media (prefers-color-scheme: dark) { .err { color: #F2B8B5; } }
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.center { text-align: center; }
.mt1 { margin-top: 1rem; }
.muted { color: var(--muted); }
