/* TummyStay booking website — in the PMS's own look (live_code/hotel_pms.php):
   Excel green, dark slate bars, Inter, square-cornered compact panels. */
:root {
  --brand: #217346;
  --brand-600: #1a5c38;
  --brand-50: #eaf4ee;
  --dark: #1a2530;
  --dark-line: #2d3a45;
  --accent: #f4b400;
  --ink: #222;
  --ink-2: #444;
  --muted: #6c757d;
  --line: #d2d2d2;
  --soft: #f3f2f1;
  --bg: #f0f2f5;
  --card: #ffffff;
  --danger: #c0392b;
  --ok: #217346;
  --radius: 3px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 6px 18px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); font-size: 13px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; font-weight: 600; color: #1f2937; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.code { font-family: Consolas, 'Courier New', monospace; }
[hidden] { display: none !important; }

/* ---------- top bar: the PMS sidebar colour ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--dark); border-bottom: 1px solid var(--dark-line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; color: #fff; font-weight: 700; letter-spacing: .3px; }
.brand:hover { text-decoration: none; }
.brand b { color: #7dd3a8; font-weight: 700; }
.brand img { border-radius: 5px; width: 30px; height: 30px; }
.topnav { display: flex; gap: 14px; align-items: center; }
.topnav a { color: #b0b8c0; font-weight: 500; font-size: 12px; }
.topnav a:hover { color: #fff; text-decoration: none; }
.topnav form { margin: 0; }
.topnav .btn { font-size: 11px; }
.topnav .btn:not(.btn-primary) { background: transparent; color: #b0b8c0; border-color: #3d4a55; }

/* ---------- ribbon (the PMS green header strip) ---------- */
.ribbon { background: var(--brand); color: #fff; border-bottom: 2px solid var(--brand-600); }
.ribbon .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; flex-wrap: wrap; }
.ribbon .title { font-size: 14px; font-weight: 600; }
.ribbon .subtitle { font-size: 10.5px; opacity: .85; }
.ribbon a { color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: 12px; padding: 6px 14px; border-radius: 2px; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; background: var(--soft); border-color: #b0b8c0; }
.btn-primary { background: var(--brand); border-color: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-accent { background: var(--accent); border-color: #d99e00; color: #1f1300; }
.btn-block { width: 100%; }
.btn-lg { padding: 10px 18px; font-size: 14px; }
.btn-sm { padding: 3px 10px; font-size: 11px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { background: var(--dark); color: #fff; padding: 34px 0 40px; border-bottom: 3px solid var(--brand); }
.hero h1 { font-size: clamp(22px, 3.2vw, 32px); font-weight: 700; color: #fff; margin-bottom: 6px; }
.hero p { font-size: 14px; color: #b0b8c0; max-width: 640px; margin: 0 0 18px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hero-badges span { background: rgba(255,255,255,.06); border: 1px solid var(--dark-line); padding: 3px 10px; border-radius: 2px; font-size: 11px; color: #d0d6dc; }
.hero-badges span::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: #7dd3a8; margin-right: 6px; font-size: 10px; }

/* ---------- search (a quick bar) ---------- */
.search { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.search-compact { grid-template-columns: 1fr 1fr 1.3fr auto; background: var(--soft); }
.field { display: flex; flex-direction: column; justify-content: center; padding: 6px 12px; position: relative; min-width: 0; border-right: 1px solid #e3e3e3; }
.field > span { font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: #888; font-weight: 600; }
.field input { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 2px 0; outline: none; width: 100%; min-width: 0; font-size: 13px; }
.guest-toggle { border: 0; background: transparent; font: inherit; text-align: left; padding: 2px 0; cursor: pointer; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.guest-pop { position: absolute; top: calc(100% + 4px); left: -1px; right: -1px; min-width: 250px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--brand); box-shadow: var(--shadow-lg); padding: 10px; z-index: 20; display: grid; gap: 8px; }
.stepper { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 12px; }
.stepper div { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 28px; height: 28px; border-radius: 2px; border: 1px solid var(--line); background: #fff; font-size: 15px; cursor: pointer; color: var(--brand); }
.stepper input { width: 30px; text-align: center; border: 0; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-search { border-radius: 0 2px 2px 0; padding-inline: 22px; margin: -1px; }

/* ---------- sections ---------- */
.section { padding: 18px 0; }
.section-lift { margin-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section-head h2 { font-size: 16px; margin: 0; }

/* ---------- panels ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 14px; }
.card + .card { margin-top: 10px; }
.card > h2:first-child, .card > h3:first-child { font-size: 12px; text-transform: uppercase; letter-spacing: .3px; color: #444; border-bottom: 1px solid #e6e6e6; padding-bottom: 7px; margin-bottom: 10px; }

/* ---------- hotel list ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.hcard { background: var(--card); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; color: inherit; transition: border-color .15s, box-shadow .15s; }
.hcard:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); text-decoration: none; }
.hcard-img { aspect-ratio: 16 / 10; background: #2d3a45; position: relative; }
.hcard-img img { width: 100%; height: 100%; object-fit: cover; }
.hcard-img .initials { position: absolute; inset: 0; display: grid; place-items: center; color: #7dd3a8; font-size: 34px; font-weight: 700; }
.stars { position: absolute; left: 0; top: 0; background: var(--brand); color: #fff; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.hcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 3px solid var(--brand); }
.hcard-body h3 { font-size: 15px; margin: 0; }
.hcard-foot { display: flex; align-items: end; justify-content: space-between; margin-top: auto; padding-top: 8px; border-top: 1px dashed #e3e3e3; }
.price b { font-size: 17px; color: #1f2937; }
.price small { color: var(--muted); display: block; font-size: 10px; text-transform: uppercase; }

/* ---------- hotel page ---------- */
.crumbs { font-size: 11px; color: var(--muted); margin: 12px 0 4px; }
.hotel-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.hotel-title h1 { font-size: clamp(20px, 2.6vw, 26px); margin: 0; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 170px 170px; gap: 4px; margin-bottom: 12px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.gallery > * { background: #e9ecef; overflow: hidden; position: relative; }
.gallery > *:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--brand-50); color: var(--brand-600); border: 1px solid #c7e3d2; border-radius: 2px; padding: 2px 8px; font-size: 11px; font-weight: 500; }
.chip::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px; }

/* ---------- rooms (sheet rows) ---------- */
.room { display: grid; grid-template-columns: 200px minmax(0, 1fr); border: 1px solid var(--line); background: #fff; overflow: hidden; }
.room + .room { margin-top: 8px; }
.room:hover { border-color: #9fc9b0; }
.room-img { background: #e9ecef; min-height: 150px; position: relative; }
.room-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.room-body { padding: 10px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.room-body h3 { font-size: 15px; margin-bottom: 2px; }
.room-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.room-desc { font-size: 12px; color: var(--ink-2); margin: 0 0 6px; }
.room-buy { text-align: right; display: flex; flex-direction: column; align-items: end; justify-content: space-between; gap: 8px; min-width: 160px; border-left: 1px solid #eee; padding-left: 12px; }
.room-buy .amount { font-size: 19px; font-weight: 700; color: #1f2937; }
.room-buy .per { font-size: 10.5px; color: var(--muted); }
.left { color: var(--danger); font-size: 10.5px; font-weight: 700; }
.soldout { color: var(--muted); font-weight: 600; font-size: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--soft); font-size: 15px; color: var(--brand); cursor: pointer; }
.qty button:hover { background: var(--brand-50); }
.qty input { width: 36px; text-align: center; border: 0; border-inline: 1px solid var(--line); font: inherit; font-weight: 700; height: 30px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- summary ---------- */
.sticky { position: sticky; top: 64px; }
.summary { border-top: 3px solid var(--brand); }
.summary h3 { font-size: 12px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 12px; border-bottom: 1px solid #f0f0f0; }
.sum-row.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-size: 15px; font-weight: 700; }
.sum-dates { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e3e3e3; background: var(--soft); margin: 4px 0 10px; font-size: 11px; }
.sum-dates > div { padding: 6px 8px; }
.sum-dates > div + div { border-left: 1px solid #e3e3e3; }
.sum-dates b { display: block; font-size: 13px; }
.trust { display: grid; gap: 3px; margin-top: 10px; font-size: 11px; color: var(--muted); }
.trust span::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--ok); margin-right: 6px; font-size: 10px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .full { grid-column: 1 / -1; }
.input { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: #555; }
.input input, .input textarea, .input select { font: inherit; font-size: 13px; font-weight: 400; color: var(--ink); border: 1px solid #c8c8c8; border-radius: 2px; padding: 7px 9px; background: #fff; outline: none; }
.input input:focus, .input textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(33, 115, 70, .18); }
.input input:disabled { background: var(--soft); color: var(--muted); }
.check { display: flex; gap: 8px; align-items: start; font-size: 12px; }
.check input { margin-top: 2px; accent-color: var(--brand); width: 15px; height: 15px; }

/* ---------- notices ---------- */
.notice { border-radius: 2px; padding: 8px 12px; margin: 0 0 10px; font-weight: 500; font-size: 12px; border: 1px solid; border-left-width: 4px; }
.notice-error { background: #fdf0ee; color: #a93226; border-color: #f1b8b1; border-left-color: var(--danger); }
.notice-ok { background: #eef7f1; color: #1a5c38; border-color: #b9dcc7; border-left-color: var(--brand); }
.notice-info { background: #eef4fb; color: #1f4e79; border-color: #bcd3ea; border-left-color: #2e75b6; }

/* ---------- confirmation ---------- */
.confirm-hero { text-align: center; padding: 22px 16px 12px; border-top: 3px solid var(--brand); }
.tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 28px; font-weight: 700; }
.tick.wait { background: var(--accent); color: #1f1300; }
.tick[data-refresh-after] { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ref { display: inline-block; font-family: Consolas, monospace; font-size: 18px; font-weight: 700; letter-spacing: .08em; background: var(--soft); border: 1px dashed var(--brand); color: var(--brand-600); padding: 5px 14px; margin: 8px 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; border: 1px solid #e3e3e3; font-size: 12px; margin: 0; }
.kv dt, .kv dd { padding: 5px 9px; border-bottom: 1px solid #eee; margin: 0; }
.kv dt { color: #555; background: #f8f9fa; font-weight: 600; font-size: 11px; }
.kv dd { font-weight: 500; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }

/* ---------- footer: the PMS sidebar colour ---------- */
.footer { margin-top: 26px; background: var(--dark); color: #b0b8c0; padding-top: 18px; border-top: 3px solid var(--brand); }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-bottom: 14px; }
.footer .brand { color: #fff; font-size: 14px; }
.footer p { margin: 6px 0 0; font-size: 12px; }
.footer-links { display: flex; gap: 16px; font-size: 12px; }
.footer-links a { color: #d0d6dc; }
.copy { border-top: 1px solid var(--dark-line); padding-block: 8px; font-size: 10.5px; color: #6a7a8a; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 60; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-height: 88vh; }
.lightbox button { position: absolute; top: 12px; right: 12px; }

.mobile-bar { display: none; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .search, .search-compact { grid-template-columns: 1fr 1fr; }
  .search .field { border-bottom: 1px solid #e3e3e3; }
  .search .field-where, .search .field-guests, .search .btn-search { grid-column: 1 / -1; }
  .btn-search { margin: 0; border-radius: 0; padding-block: 10px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 110px; }
  .gallery > *:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery > *:nth-child(n+4) { display: none; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 2px solid var(--brand); padding: 8px 14px; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-bar b { font-size: 16px; }
  body.has-bar { padding-bottom: 64px; }
}
@media (max-width: 640px) {
  .topnav > a:first-child { display: none; }
  .room { grid-template-columns: 1fr; }
  .room-img { min-height: 150px; }
  .room-body { grid-template-columns: 1fr; }
  .room-buy { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid #eee; padding-top: 8px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; }
}

/* the TummyStay logo artwork, as in the PMS sidebar */
.brand img.logo { width: auto; height: 38px; border-radius: 3px; }
.footer .brand img.logo { height: 34px; }
