/* Hotel / Guesthouse public booking site */
:root {
    --bg: #faf8f5;
    --surface: #ffffff;
    --ink: #1f2a2e;
    --muted: #66737a;
    --line: #e7e2da;
    --brand: #1e5b53;
    --brand-ink: #ffffff;
    --brand-soft: #e5efed;
    --accent: #c8893b;
    --danger: #b3412f;
    --danger-soft: #fbeae6;
    --ok: #2f7d4f;
    --ok-soft: #e6f3eb;
    --warn: #9a6a12;
    --warn-soft: #fbf1dc;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(31, 42, 46, .08);
    --font: "Inter", "Kantumruy Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Playfair Display", "Kantumruy Pro", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a.active { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { border-radius: 0; padding: 6px 10px; font-size: .85rem; }
.lang-switch a.active { background: var(--brand); color: var(--brand-ink); }

/* Hero */
.hero {
    background: linear-gradient(135deg, rgba(20, 58, 53, .92), rgba(30, 91, 83, .78)), url("hero.jpg") center/cover no-repeat, #1e5b53;
    color: #fff;
    padding: 64px 0 96px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: .3em; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 620px; margin: 0; }

/* Search card */
.search-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-top: -56px;
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1.3fr .8fr .8fr auto;
    gap: 12px;
    align-items: end;
}
.field label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    min-height: 46px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-stack { display: grid; gap: 14px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600;
    border: 1px solid transparent; border-radius: 10px;
    padding: 11px 20px; min-height: 46px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 1.8rem; }

/* Room cards */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.room-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.room-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.room-photo { aspect-ratio: 16 / 10; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 3rem; overflow: hidden; }
.room-photo img { width: 100%; height: 100%; object-fit: cover; }
.room-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-body h3 { font-size: 1.3rem; margin: 0; }
.room-sub { color: var(--muted); font-size: .9rem; }
.room-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.room-facts i { color: var(--brand); width: 16px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .8rem; color: var(--muted); }
.room-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-size: 1.45rem; font-weight: 700; color: var(--ink); }
.price small { font-size: .8rem; font-weight: 400; color: var(--muted); }
.price-total { font-size: .85rem; color: var(--muted); }

/* Alerts & badges */
.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid transparent; }
.alert p { margin: 0; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f1cfc7; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #c9e5d3; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0dfb5; }
.badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 600; }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-confirmed, .badge-checked_in { background: var(--ok-soft); color: var(--ok); }
.badge-checked_out { background: #eceff1; color: #546e7a; }
.badge-cancelled { background: var(--danger-soft); color: var(--danger); }

.empty { text-align: center; padding: 50px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty i { font-size: 2.4rem; color: var(--brand); margin-bottom: 10px; }

/* Room detail */
.room-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 28px; align-items: start; }
.room-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--brand); }
.room-hero img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { font-size: 1.35rem; }
.booking-card { position: sticky; top: 86px; }
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.amenity-list li::before { content: "\f00c"; font-family: FontAwesome; color: var(--ok); margin-right: 8px; }
.summary { display: grid; gap: 6px; padding: 14px; background: var(--bg); border-radius: 10px; font-size: .95rem; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.blocked-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.blocked-list li { background: var(--danger-soft); color: var(--danger); border-radius: 8px; padding: 3px 10px; font-size: .85rem; }
.hp { position: absolute; left: -9999px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 14px; color: var(--muted); }

/* Confirmation / lookup */
.narrow { max-width: 680px; margin: 0 auto; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 14px; }
.ref-box { text-align: center; background: var(--brand-soft); border-radius: 12px; padding: 16px; margin: 18px 0; }
.ref-box .ref { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.8rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 0; }
.details dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.details dd { margin: 2px 0 0; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Footer */
.site-footer { background: #17302c; color: #c9d6d3; margin-top: 40px; padding: 36px 0 20px; font-size: .92rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer p { margin: 0 0 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 24px; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .85rem; }

@media (max-width: 900px) {
    .search-card { grid-template-columns: 1fr 1fr; }
    .search-card .search-btn { grid-column: 1 / -1; }
    .room-layout { grid-template-columns: 1fr; }
    .booking-card { position: static; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .hero { padding: 40px 0 84px; }
    .site-header .container { padding-top: 8px; padding-bottom: 8px; }
    .nav { margin-left: 0; width: 100%; }
    .details { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr 1fr; }
}
