/* Hotel Jogmaya — public website.
   Hand-written, no build step. Brand colours come from the database and are
   injected as custom properties by the layout, so the whole site can be
   re-skinned from the admin panel. */

:root {
  --brand: #8c6a3f;
  --brand-dark: #6f5230;
  --brand-tint: #f4ede1;
  --accent: #1f6f5c;
  --ink: #241f1a;
  --ink-soft: #4f4840;
  --ink-muted: #6f6a61;
  --sand: #faf7f2;
  --line: #e7e0d4;
  --white: #fff;
  --shadow: 0 1px 2px rgba(36,31,26,.04), 0 18px 40px -28px rgba(36,31,26,.45);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 16px/1.65 "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 36px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 36px); margin-inline: auto; }
.muted { color: var(--ink-muted); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
section { padding: 56px 0; }
section.tight { padding: 36px 0; }
.section-head { max-width: 640px; margin-bottom: 30px; }
.section-head.center { margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem;
  font-weight: 700; color: var(--brand); margin-bottom: .55em; }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--ink); color: #e9e3d8; font-size: .82rem; }
.topbar .wrap { display: flex; gap: 18px; justify-content: space-between; padding: 7px 0; flex-wrap: wrap; }
.topbar a { color: #e9e3d8; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px; letter-spacing: .5px; flex: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.brand b { display: block; font-family: Georgia, serif; font-size: 1.06rem; line-height: 1.15; }
.brand span { font-size: .74rem; color: var(--ink-muted); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 9px 12px; border-radius: 9px; font-size: .93rem; font-weight: 600; }
.nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.nav a.is-active { color: var(--brand-dark); background: var(--brand-tint); }
.menu-toggle { display: none; }
.nav-button { display: none; background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font: inherit; cursor: pointer; color: var(--ink-soft); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent; font-weight: 700;
  font-size: .95rem; text-decoration: none; cursor: pointer; font-family: inherit; transition: .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(76vh, 620px); display: grid; align-items: center;
  color: #fff; background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(28,23,18,.82) 12%, rgba(28,23,18,.44) 68%, rgba(28,23,18,.2)); }
.hero .wrap { position: relative; z-index: 2; padding: 64px 0; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.3); }
.hero p { max-width: 46ch; color: #f1ebe0; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ------------------------------------------------------------ search card */
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-top: -46px; position: relative; z-index: 5; border: 1px solid var(--line); }
.search-card form { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
.search-card label { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 5px; }

/* ----------------------------------------------------------------- forms */
.input, select.input, textarea.input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: .95rem; background: #fff; color: var(--ink); }
.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea.input { min-height: 120px; resize: vertical; }
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 5px; }
.field .hint { font-size: .78rem; color: var(--ink-muted); margin: 5px 0 0; }
.field .error { font-size: .82rem; color: #b3261e; margin: 5px 0 0; }
.form-grid { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.required { color: #b3261e; }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; background: var(--brand-tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { font-family: Georgia, serif; font-size: 1.35rem; color: var(--brand-dark); font-weight: 700; }
.price small { font-size: .72rem; color: var(--ink-muted); font-weight: 400; display: block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .74rem; background: var(--brand-tint); color: var(--brand-dark);
  padding: 4px 9px; border-radius: 99px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; background: #eee; color: #444; }
.badge-green { background: #e6f3ec; color: #1d5c3a; }
.badge-amber { background: #fbf0d9; color: #7a5312; }
.badge-red { background: #fbe9e7; color: #8c1d18; }
.badge-blue { background: #e8eff7; color: #1e4b73; }

/* -------------------------------------------------------------- features */
.feature { display: flex; gap: 13px; align-items: flex-start; }
.feature .dot { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-tint);
  color: var(--brand-dark); display: grid; place-items: center; flex: none; font-size: 17px; }
.feature b { display: block; font-size: .97rem; }
.feature span { font-size: .87rem; color: var(--ink-muted); }

/* ------------------------------------------------------------- galleries */
.gallery-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--brand-tint); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px; border-bottom: 1px solid #f2ede3; vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------- notices */
.notice { border-radius: 12px; padding: 13px 16px; margin-bottom: 16px; font-size: .93rem; border: 1px solid; }
.notice-info { background: #f2f6f9; border-color: #d8e5ef; color: #1e4b73; }
.notice-good { background: #eef6f0; border-color: #cfe6d8; color: #1d5c3a; }
.notice-warn { background: #fcf4e3; border-color: #eeddb9; color: #7a5312; }
.notice-bad  { background: #fdeceb; border-color: #f4d2ce; color: #8c1d18; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #d9d2c6; padding: 52px 0 26px; margin-top: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.site-footer a { color: #d9d2c6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: #a79f92; }

/* ------------------------------------------------------------- whatsapp */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 54px; height: 54px;
  border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); text-decoration: none; }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

/* ------------------------------------------------------------- utilities */
.stack { display: grid; gap: 14px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.rating { color: #d8a02c; letter-spacing: 2px; }
.divider { height: 1px; background: var(--line); margin: 26px 0; border: 0; }
.pill-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill-nav a { text-decoration: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); font-size: .87rem; font-weight: 600; }
.pill-nav a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.prose h2 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.summary-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .93rem; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 13px;
  font-size: 1.05rem; font-weight: 700; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-card form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-button { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; padding: 10px 18px 18px; gap: 2px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-toggle:checked ~ .nav { display: flex; }
  .site-header .wrap { position: relative; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .search-card { margin-top: -20px; }
  section { padding: 40px 0; }
}
