/* =====================================================================
   Hotelbook design system
   One stylesheet shared by guest / owner / admin apps. Per-view accent is
   set via body class (default = guest indigo, .owner = teal, .admin = violet).
   Every legacy class (.card, .panel, .tile, .badge, .btn-*, .row, .field …)
   is preserved so existing pages keep working; new components are additive.
   ===================================================================== */

:root {
  /* Brand accent (guest) */
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef2ff;
  --accent-contrast: #ffffff;
  --accent-rgb: 79, 70, 229;

  /* Neutrals — light */
  --bg: #f6f7fb;
  --bg-gradient: radial-gradient(1200px 600px at 100% -10%, #eef2ff 0%, rgba(238, 242, 255, 0) 60%),
    radial-gradient(900px 500px at -10% 0%, #ecfeff 0%, rgba(236, 254, 255, 0) 55%);
  --card: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0b1220;
  --heading: #0b1220;
  --muted: #64748b;
  --border: #e6e9f2;
  --border-strong: #d3d9e6;

  /* Semantic */
  --error-bg: #fef2f2;
  --error-fg: #b91c1c;
  --ok-bg: #ecfdf5;
  --ok-fg: #047857;
  --warn-bg: #fffbeb;
  --warn-fg: #b45309;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --ring: 0 0 0 4px rgba(var(--accent-rgb), 0.18);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

body.owner {
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --accent-soft: #f0fdfa;
  --accent-rgb: 13, 148, 136;
  --bg-gradient: radial-gradient(1200px 600px at 100% -10%, #ccfbf1 0%, rgba(204, 251, 241, 0) 60%),
    radial-gradient(900px 500px at -10% 0%, #eef2ff 0%, rgba(238, 242, 255, 0) 55%);
}

body.admin {
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --accent-soft: #f5f3ff;
  --accent-rgb: 124, 58, 237;
  --bg-gradient: radial-gradient(1200px 600px at 100% -10%, #ede9fe 0%, rgba(237, 233, 254, 0) 60%),
    radial-gradient(900px 500px at -10% 0%, #e0e7ff 0%, rgba(224, 231, 255, 0) 55%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-gradient: radial-gradient(1200px 600px at 100% -10%, rgba(79, 70, 229, 0.18) 0%, rgba(10, 15, 28, 0) 60%),
      radial-gradient(900px 500px at -10% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(10, 15, 28, 0) 55%);
    --card: #111827;
    --surface-2: #0f1626;
    --text: #e5e9f2;
    --heading: #f8fafc;
    --muted: #94a3b8;
    --border: #1f2937;
    --border-strong: #2b3648;
    --accent-soft: rgba(99, 102, 241, 0.14);
    --error-bg: rgba(185, 28, 28, 0.16);
    --error-fg: #fca5a5;
    --ok-bg: rgba(4, 120, 87, 0.16);
    --ok-fg: #6ee7b7;
    --warn-bg: rgba(180, 83, 9, 0.16);
    --warn-fg: #fcd34d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  }
  body.owner { --accent-soft: rgba(13, 148, 136, 0.16); }
  body.admin { --accent-soft: rgba(124, 58, 237, 0.18); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Centered layout for auth cards (default body) */
body:not(.page) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
::selection { background: rgba(var(--accent-rgb), 0.22); }

/* ------------------------------------------------------------------ */
/* Auth card                                                          */
/* ------------------------------------------------------------------ */
.card {
  background: var(--card);
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), var(--shadow-sm);
  position: relative; flex: none;
}
.brand .dot::after {
  content: ""; position: absolute; inset: 7px 7px auto auto;
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
}
.brand h1 { font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.subtitle { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }

label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; color: var(--heading); }

input[type="email"], input[type="password"], input[type="text"], input[type="date"],
input[type="number"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.7; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }
textarea { min-height: 90px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.turnstile { margin: 20px 0 8px; min-height: 65px; }

/* ------------------------------------------------------------------ */
/* Buttons                                                            */
/* ------------------------------------------------------------------ */
button, .btn {
  --btn-bg: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 16px; padding: 12px 18px;
  background: var(--btn-bg); color: var(--accent-contrast);
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  box-shadow: var(--shadow-sm);
}
button:hover:not(:disabled), .btn:hover:not(:disabled) { background: var(--accent-dark); text-decoration: none; }
button:active:not(:disabled), .btn:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible { box-shadow: var(--ring); }
button:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-inline, .btn.inline { width: auto; margin: 0; }
.btn-secondary { background: var(--card); color: var(--heading); border-color: var(--border-strong); box-shadow: none; }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--heading); border-color: transparent; box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-danger { background: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-link { background: none; color: var(--accent); width: auto; margin: 0; padding: 4px 6px; box-shadow: none; font-weight: 600; }
.btn-link:hover:not(:disabled) { background: var(--accent-soft); }
.btn-sm { padding: 8px 12px; font-size: 13.5px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

.links { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }

.msg { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; display: none; border: 1px solid transparent; }
.msg.show { display: block; }
.msg.error { background: var(--error-bg); color: var(--error-fg); border-color: color-mix(in srgb, var(--error-fg) 22%, transparent); }
.msg.success { background: var(--ok-bg); color: var(--ok-fg); border-color: color-mix(in srgb, var(--ok-fg) 22%, transparent); }

/* ------------------------------------------------------------------ */
/* Split auth layout (optional, used by modernized auth pages)        */
/* ------------------------------------------------------------------ */
.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; width: 100%; max-width: 980px; min-height: 560px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-aside { position: relative; padding: 40px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--accent), var(--accent-dark) 70%); overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; inset: -30% -20% auto auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(255,255,255,0) 60%); }
.auth-aside .brand h1 { color: #fff; }
.auth-aside .brand .dot { background: rgba(255,255,255,0.9); }
.auth-aside .brand .dot::after { background: var(--accent); }
.auth-aside h2 { color: #fff; font-size: 30px; letter-spacing: -0.02em; margin: 0 0 12px; max-width: 22ch; }
.auth-aside p { color: rgba(255,255,255,0.9); max-width: 34ch; }
.auth-aside .points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.auth-aside .points li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,0.95); font-size: 14.5px; }
.auth-aside .points li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.2); flex: none; font-size: 12px; }
.auth-main { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-main .card { border: none; box-shadow: none; padding: 0; max-width: 400px; margin: 0 auto; width: 100%; }
@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .auth-aside { display: none; }
  .auth-main { padding: 32px 26px; }
}

/* ------------------------------------------------------------------ */
/* App chrome: topbar + layout                                        */
/* ------------------------------------------------------------------ */
body.page { display: block; padding: 0; }
.topbar {
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20; gap: 16px;
}
.topbar .brand { margin: 0; }
.topbar .brand .dot { width: 22px; height: 22px; }
.topbar .brand .dot::after { inset: 6px 6px auto auto; width: 6px; height: 6px; }
.topbar .brand h1 { font-size: 17px; }
.topbar nav { display: flex; gap: 6px; align-items: center; font-size: 14px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.topbar nav a:hover { color: var(--heading); background: var(--surface-2); text-decoration: none; }
.topbar nav a.active { color: var(--accent); background: var(--accent-soft); }
.topbar nav a.cta { color: var(--accent-contrast); background: var(--accent); padding: 8px 16px; }
.topbar nav a.cta:hover { background: var(--accent-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 64px; }
.container.narrow { max-width: 720px; }
.container.wide { max-width: 1320px; }

h2.section { font-size: 22px; margin: 4px 0 18px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 0 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--accent); }
.muted { color: var(--muted); font-size: 14px; }
.stack { display: grid; gap: 16px; }
.cluster { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.right { text-align: right; }
.spacer { height: 8px; }
.hr { height: 1px; background: var(--border); border: 0; margin: 18px 0; }

.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { flex: 1 1 170px; }
.field.small { flex: 0 0 120px; }
.field label { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Panels / cards / tiles                                             */
/* ------------------------------------------------------------------ */
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.panel .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel.flush { padding: 0; overflow: hidden; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.tile { color: inherit; }
a.tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.tile .thumb { height: 178px; background: var(--surface-2) center/cover no-repeat; position: relative; }
.tile .thumb.placeholder::after {
  content: "🏨"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; opacity: 0.35;
}
.tile .body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tile .body .price { font-weight: 800; font-size: 17px; margin-top: auto; color: var(--heading); }
.tile .body .price small { font-weight: 500; color: var(--muted); }

/* Rating */
.stars { color: #f59e0b; font-size: 13px; font-weight: 600; }
.rating-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 13px; padding: 4px 9px; border-radius: 10px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.danger { background: var(--error-bg); color: var(--error-fg); }
.badge.accent { background: var(--accent-soft); color: var(--accent-dark); }
.badge .dotmark { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
thead th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; background: var(--surface-2); }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
tbody tr:last-child td { border-bottom: none; }

.rate-option { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); gap: 12px; }
.rate-option:last-child { border-bottom: none; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; color: var(--heading); }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat .ico { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); }

/* Empty state */
.empty { text-align: center; padding: 48px 24px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--card) 60%, transparent); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* Skeleton loading */
.skeleton { background: linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 40%, var(--card)) 50%, var(--surface-2) 70%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ */
/* Sidebar shell (owner + admin consoles)                             */
/* ------------------------------------------------------------------ */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--card); border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; }
.sidebar .brand { padding: 8px 10px 16px; }
.sidebar nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; font-size: 14.5px; }
.sidebar nav a:hover { background: var(--surface-2); color: var(--heading); text-decoration: none; }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.sidebar nav a .ico { width: 20px; text-align: center; flex: none; }
.sidebar .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 14px 12px 4px; font-weight: 700; }
.sidebar .foot { margin-top: auto; padding: 10px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.main .topbar { background: color-mix(in srgb, var(--card) 82%, transparent); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar .brand, .sidebar .nav-label, .sidebar .foot { display: none; }
  .sidebar nav { flex-direction: row; }
  .sidebar nav a { white-space: nowrap; }
}

/* ------------------------------------------------------------------ */
/* Hero + search (guest landing)                                      */
/* ------------------------------------------------------------------ */
.hero { position: relative; padding: 72px 24px 90px; overflow: hidden; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.03em; margin: 14px 0 14px; max-width: 16ch; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 52ch; margin: 0 0 8px; }
.hero .art { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(700px 340px at 82% 8%, rgba(var(--accent-rgb), 0.20), transparent 70%),
    radial-gradient(520px 320px at 8% 90%, rgba(245, 158, 11, 0.14), transparent 70%);
}

.searchbar { background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; margin-top: 28px; }
.searchbar .grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.searchbar label { margin: 0 0 5px; font-size: 12px; color: var(--muted); }
.searchbar .cell { display: flex; flex-direction: column; }
@media (max-width: 860px) { .searchbar .grid { grid-template-columns: 1fr 1fr; } .searchbar .cell.full { grid-column: 1 / -1; } .searchbar button { grid-column: 1 / -1; } }

.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--heading); font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: var(--shadow-sm); }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 14px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }

/* Destination tiles with overlay */
.dest { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-sm); background: var(--surface-2); }
.dest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,0) 30%, rgba(2,6,23,0.72)); }
.dest .label { position: relative; padding: 16px; z-index: 1; }
.dest .label strong { font-size: 18px; display: block; }
.dest .label span { font-size: 13px; opacity: 0.9; }
.dest:hover { text-decoration: none; }
.dest:hover img { transform: scale(1.06); }
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); padding: 40px 24px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.site-footer .cols { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer a { color: var(--muted); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--heading); margin: 0 0 10px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Live indicator + activity feed */
.live-pill { display: inline-flex; align-items: center; gap: 7px; }
.live-pill.paused { color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); } 70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.feed { display: flex; flex-direction: column; }
.feed .item { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); align-items: flex-start; animation: fadein 0.4s ease; }
.feed .item:last-child { border-bottom: none; }
.feed .ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); font-size: 15px; }
.feed .ic.sev-critical, .feed .ic.sev-high { background: var(--error-bg); color: var(--error-fg); }
.feed .ic.sev-medium { background: var(--warn-bg); color: var(--warn-fg); }
.feed .grow { min-width: 0; }
.feed .line { font-size: 14px; color: var(--heading); }
.feed .line strong { font-weight: 700; }
.feed .meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.feed .when { font-size: 12px; color: var(--muted); white-space: nowrap; flex: none; }
.feed .item.flash { background: color-mix(in srgb, var(--accent-soft) 70%, transparent); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--heading); color: var(--card); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Two-column detail / checkout layouts */
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 860px) {
  .detail-grid, .checkout-grid { grid-template-columns: 1fr; }
  .detail-grid aside, .checkout-grid aside { position: static !important; }
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; max-height: 380px; }
.gallery .g { background: var(--surface-2) center/cover no-repeat; min-height: 120px; }
.gallery .g:first-child { grid-row: 1 / 3; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; } .gallery .g:first-child { grid-row: auto; grid-column: 1 / -1; height: 200px; } }

/* Utility */
.hide { display: none !important; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; }
.text-center { text-align: center; }
.grow { flex: 1; }
