/* ==========================================================================
   Base theme — the neutral skeleton every child theme extends.

   This is NOT a brand look. It ships:
     - neutral :root token DEFAULTS (grayscale palette, system fonts) so a
       child that forgets to define a token still renders legibly,
     - a light CSS reset,
     - the shared structural chrome (page shell / header / nav / language
       switcher / footer / button / card / error page) that the skeleton
       partials in base/views reference.

   The structural rules are entirely token-driven — they carry NO literal
   brand color or custom font, so under base's own neutral :root they render
   as a plain grayscale skeleton. A child theme (amman, …) loads this first,
   then redefines every :root token and overrides/extends these rules with its
   own brand chrome, so its cascade is unchanged from a child that inherited an
   opinionated parent. Keep this file free of brand colors, custom fonts and
   page-specific styling.
   ========================================================================== */

/* === TOKENS (neutral defaults; child themes override every one) ========= */
:root {
    --brand: #374151;
    --bg: #ffffff;
    --surface: #ffffff;
    --border: #e5e7eb;
    --ink: #111827;
    --ink-muted: #6b7280;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-card: none;
    --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, .08);
}

/* === RESET ============================================================== */
* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-muted); }

/* === LAYOUT ============================================================= */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.page { max-width: 980px; margin: 0 auto; padding: 36px 20px; }

/* === HEADER / NAV ======================================================= */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 16px; flex-wrap: wrap; }
.brand { font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.nav-link:hover { color: var(--brand); }
.nav-link.is-active { color: var(--brand); font-weight: 700; }

/* === LANGUAGE SWITCHER ================================================== */
.lang { display: inline-flex; gap: 10px; padding-inline-start: 8px; border-inline-start: 1px solid var(--border); }
.lang-link { color: var(--ink-muted); }
.lang-link.is-active { color: var(--ink); font-weight: 700; text-decoration: underline; }

/* === BUTTON ============================================================= */
.btn { background: var(--brand); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 10px 16px; font: inherit; cursor: pointer; display: inline-block; }
.btn:hover { filter: brightness(1.05); }

/* === CARDS (shared component shell) ===================================== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-card); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card-image { display: block; width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; background: #f3f4f6; }
.card-title { font-weight: 700; margin-bottom: 4px; }

/* === SHARED CONTENT BITS =============================================== */
.chip { background: #f3f4f6; border-radius: 999px; padding: 4px 10px; font-size: .82rem; }
.detail-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 16px; }
.room-name { min-width: 180px; }
.room-price { margin-left: auto; font-weight: 700; color: var(--brand); }

/* === FOOTER ============================================================= */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); color: var(--ink-muted); font-size: .9rem; padding: 20px 0; margin-top: 40px; }

/* === ERROR PAGE ======================================================== */
.error-page { text-align: center; padding: 60px 0; }
.error-code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.error-title { margin: 8px 0 6px; }
