/*
 * HotelMonitor Brand Design System v2.0
 * Claude Design Handoff — May 2026
 * Single source of truth. Linked from every page.
 */

/* ── FONTS ──────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
  /* Core palette — Claude Design v2.0 */
  --navy:         #0d1f33;
  --navy-mid:     #1a3350;
  --navy-light:   #2a4d72;
  --teal:         #10b8a4;
  --teal-light:   #5dd5c8;
  --teal-dark:    #0a8a7a;
  --teal-pale:    rgba(16,184,164,0.10);
  --teal-border:  rgba(16,184,164,0.20);
  --gold:         #c9a84c;
  --gold-dark:    #8a6a00;
  --gold-pale:    rgba(201,168,76,0.10);
  --white:        #ffffff;
  --sand:         #f7f5f0;
  --sand-mid:     #ede9e1;

  /* Text */
  --text:         #0d1f33;
  --text-mid:     #3d5166;
  --text-light:   #7a90a4;

  /* Semantic */
  --success:      #0a8a7a;
  --success-bg:   rgba(16,184,164,0.08);
  --alert:        #c0392b;
  --border:       rgba(13,31,51,0.09);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(13,31,51,0.07);
  --shadow:       0 4px 20px rgba(13,31,51,0.07);
  --shadow-lg:    0 12px 40px rgba(13,31,51,0.12);

  /* Fonts */
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  /* Legacy aliases kept for compatibility */
  --font-mono:    'DM Sans', system-ui, sans-serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  /* Legacy color aliases — kept for pages that reference old names */
  --cream:        #f7f5f0;
  --warm-white:   #ffffff;
  --off-white:    #e8f0f7;
  --muted:        rgba(232,240,247,0.55);
  --forest:       #0d1f33;
  --forest-deep:  #0d1f33;
  --charcoal:     #0d1f33;
  --ink:          #0d1f33;
  --terracotta:   #10b8a4;
  --terra-dark:   #0a8a7a;
  --terra-pale:   rgba(16,184,164,0.10);
  --terra-light:  #5dd5c8;
  --stone:        #7a90a4;
  --slate:        #7a90a4;
  --silver:       #f7f5f0;
  --navy-deep:    #0d1f33;
  --blue:         #10b8a4;
  --blue-light:   #5dd5c8;
  --blue-pale:    rgba(16,184,164,0.10);
  --sage:         #10b8a4;
  --sage-pale:    rgba(16,184,164,0.07);
  --emerald:      #0a8a7a;
  --emerald-pale: rgba(16,184,164,0.10);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* All form inputs inherit body font */
input, select, textarea, button {
  font-family: inherit;
}

/* Headings use serif */
h1, h2.serif, .serif-heading {
  font-family: var(--font-serif);
}

/* ── FAVICON SVG ────────────────────────────────────────────────────────── */
/* Defined inline on each page — teal square with HM glyphs + price-drop arrow */

/* ── LOGO SNIPPET (reusable SVG inline) ─────────────────────────────────── */
/* Used as: <svg class="hm-logo-svg" viewBox="0 0 56 56" fill="none">...</svg> */

/* ── NAV ────────────────────────────────────────────────────────────────── */
.hm-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: rgba(13,31,51,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16,184,164,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
@media (max-width: 768px) { .hm-nav { padding: 0 20px; } }

/* ── LOGO ───────────────────────────────────────────────────────────────── */
.hm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.hm-logo-svg {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.hm-logo-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hm-logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hm-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  line-height: 1;
}

/* Legacy logo classes — kept for backward compat */
.hm-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* ── NAV LINKS ──────────────────────────────────────────────────────────── */
.hm-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.hm-nav-links a {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(232,240,247,0.6);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.hm-nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.hm-nav-links a.active {
  color: var(--teal);
}

.hm-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 6px !important;
  border: none !important;
  text-decoration: none !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.hm-nav-cta:hover {
  background: var(--teal-dark) !important;
  box-shadow: 0 4px 16px rgba(16,184,164,0.35) !important;
  transform: none !important;
}

/* ── NAV MOBILE BURGER ──────────────────────────────────────────────────── */
.hm-nav-burger {
  display: none;
  background: none;
  border: none;
  color: rgba(232,240,247,0.8);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 640px) {
  .hm-nav { padding: 0 1.25rem; }
  .hm-nav-burger { display: flex; align-items: center; }
  .hm-nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: rgba(13,31,51,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.5rem 1.25rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--teal-border);
    z-index: 99;
  }
  .hm-nav-links.open { display: flex; }
  .hm-nav-links a {
    width: 100%;
    padding: 0.65rem 0.75rem;
    font-size: 0.95rem;
  }
  .hm-nav-cta { margin-top: 0.25rem; }
}

/* ── BACK LINK (inner pages) ────────────────────────────────────────────── */
.hm-nav-back {
  font-size: 0.8rem;
  color: rgba(232,240,247,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.hm-nav-back:hover { color: var(--white); }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); }

.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 4px 16px rgba(16,184,164,0.35); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--sand-mid); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark); }

.btn-sm { font-size: 0.78rem; padding: 0.45rem 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── TAGS & BADGES ──────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.tag-teal  { background: rgba(16,184,164,0.1);  color: var(--teal-dark);  border: 1px solid rgba(16,184,164,0.2); }
.tag-navy  { background: rgba(13,31,51,0.08);   color: var(--navy-mid);   border: 1px solid rgba(13,31,51,0.12); }
.tag-gold  { background: rgba(201,168,76,0.12); color: var(--gold-dark);  border: 1px solid rgba(201,168,76,0.2); }
.tag-sand  { background: var(--sand);           color: var(--text-mid);   border: 1px solid var(--sand-mid); }

/* Legacy pill class */
.hm-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--teal-pale);
  border: 1px solid var(--teal-border);
  border-radius: 100px;
  padding: 3px 12px;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── EYEBROW LABEL ──────────────────────────────────────────────────────── */
.hm-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
}

/* ── FORM FIELDS ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.field-input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--sand-mid);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(16,184,164,0.12);
}

.field-input::placeholder { color: var(--text-light); }

/* ── STAT PILLS ─────────────────────────────────────────────────────────── */
.hm-stat-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  padding: 10px 22px;
  text-align: center;
}

.hm-stat-val {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.hm-stat-val.teal { color: var(--teal); }

.hm-stat-lbl {
  font-size: 0.7rem;
  color: rgba(232,240,247,0.45);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

/* ── ALERT CARD ─────────────────────────────────────────────────────────── */
.hm-alert-card {
  background: var(--navy);
  border-radius: 14px;
  padding: 24px;
  border: 1px solid rgba(16,184,164,0.2);
  border-left: 3px solid var(--teal);
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.hm-footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(16,184,164,0.08);
  color: rgba(232,240,247,0.5);
  padding: 36px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
}

.hm-footer a {
  color: rgba(232,240,247,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.hm-footer a:hover { color: var(--teal); }

.hm-footer-social {
  display: inline-flex; align-items: center; gap: 5px;
  color: rgba(232,240,247,0.5); text-decoration: none;
  transition: color 0.2s;
}
.hm-footer-social:hover { color: #1877f2 !important; }

/* Simple centered footer variant */
.hm-footer-simple {
  background: var(--navy-mid);
  border-top: 1px solid rgba(16,184,164,0.08);
  color: rgba(232,240,247,0.4);
  text-align: center;
  padding: 1.75rem 1.5rem;
  font-size: 0.78rem;
}

.hm-footer-simple a {
  color: rgba(232,240,247,0.5);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.hm-footer-simple a:hover { color: var(--teal); }

/* ── CARD VARIANTS ──────────────────────────────────────────────────────── */
.card-glass {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
}

.card-white {
  background: var(--white);
  border: 1px solid var(--sand-mid);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ── PLATFORM CHIPS ─────────────────────────────────────────────────────── */
.platform-chip {
  background: var(--white);
  border: 1px solid var(--sand-mid);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-mid);
  display: inline-block;
}

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────────────────────── */
.text-sm   { font-size: 0.72rem; }
.text-md   { font-size: 0.82rem; }
.text-lg   { font-size: 0.9rem; }
.text-xl   { font-size: 1.5rem; }
.text-2xl  { font-size: 1.75rem; }

.text-center { text-align: center; }
.text-light  { color: var(--text-light); }
.text-white  { color: white; }
.text-muted  { color: rgba(255,255,255,0.35); }
.text-italic { font-style: italic; }
.text-teal   { color: var(--teal); }

.font-serif { font-family: var(--font-serif); }
.font-body  { font-family: var(--font-body); }
/* Legacy alias */
.font-mono  { font-family: var(--font-body); }

/* ── SPACING UTILITIES ──────────────────────────────────────────────────── */
.padding-1   { padding: 1rem 0; }
.padding-1-2 { padding: 1.2rem 1rem; }
.padding-2   { padding: 2rem; }
.padding-3   { padding: 3rem; }
.margin-b-8  { margin-bottom: 8px; }
.margin-b-12 { margin-bottom: 12px; }
.margin-t-4  { margin-top: 4px; }
.padding-top-8 { padding-top: 8px; }

/* ── FLEX UTILITIES ─────────────────────────────────────────────────────── */
.flex-row     { display: flex; justify-content: space-between; align-items: center; }
.flex-col     { display: flex; flex-direction: column; }
.flex-gap-8   { display: flex; gap: 8px; align-items: center; }

/* ── MISC UTILITIES ─────────────────────────────────────────────────────── */
.cursor-pointer     { cursor: pointer; }
.overflow-hidden    { overflow: hidden; }
.letter-spacing     { letter-spacing: 0.08em; }
.letter-spacing-sm  { letter-spacing: 0.07em; }
.text-transform-upper { text-transform: uppercase; }
.line-height-1      { line-height: 1; }
.line-height-1-65   { line-height: 1.65; }
.font-weight-400    { font-weight: 400; }
.font-weight-600    { font-weight: 600; }
.border-right       { border-right: 1px solid rgba(255,255,255,0.06); }
.border-bottom      { border-bottom: 1px solid var(--border); }
.card-border        { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.transition-fast    { transition: transform 0.2s; }
.max-h-0            { max-height: 0; }

/* ── HIGHLIGHT BOX (privacy, legal pages) ───────────────────────────────── */
.highlight {
  background: var(--teal-pale);
  border-left: 3px solid var(--teal);
  padding: 0.8rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1.2rem 0;
}

/* ── BLOG IMAGERY (post heroes + index card thumbnails) ─────────────────── */
.post-hero-img {
  display: block; width: 100%; height: auto;
  max-height: 420px; object-fit: cover;
  border-radius: 16px; margin: 0 0 0.6rem;
}
.img-caption {
  font-size: 0.78rem; color: #8a8275; text-align: center;
  margin: 0 0 1.6rem; font-style: italic;
}
/* Full-bleed thumbnail at the top of a .blog-card (padding 1.75rem). */
.blog-card-img,
.blog-card-imgph {
  display: block; width: calc(100% + 3.5rem); height: 180px;
  margin: -1.75rem -1.75rem 1.25rem -1.75rem;
  border-radius: 16px 16px 0 0;
}
.blog-card-img { object-fit: cover; }
.blog-card-imgph {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
}

/* ── LIVE PRICE COMPONENT (blog destination guides; live-prices.js) ────────── */
.live-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem 1.4rem 1.5rem; margin: 1.5rem 0 2rem; }
.live-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 0.25rem; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 100px; padding: 2px 10px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #10b981; animation: lp 1.8s infinite; }
@keyframes lp { 0%{box-shadow:0 0 0 0 rgba(16,185,129,0.5)} 70%{box-shadow:0 0 0 7px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }
.live-title { font-weight: 600; color: var(--navy-light); font-size: 1.05rem; }
.live-sub { font-size: 0.78rem; color: #8a8275; margin-bottom: 1rem; }
.mrow { display: grid; grid-template-columns: 42px 1fr 64px; align-items: center; gap: 10px; margin: 5px 0; font-size: 0.86rem; }
.mrow .mname { font-weight: 600; color: var(--text); }
.mbar-wrap { background: var(--sand); border-radius: 6px; height: 18px; overflow: hidden; }
.mbar { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #5dd5c8, #10b8a4); }
.mbar.cheap { background: linear-gradient(90deg, #34d399, #059669); }
.mbar.dear  { background: linear-gradient(90deg, #fca5a5, #dc2626); }
.mprice { text-align: right; font-family: var(--font-mono); font-weight: 600; color: var(--navy); }
.live-empty { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 1.25rem; text-align: center; color: #64748b; font-size: 0.9rem; }
.live-foot { font-size: 0.72rem; color: #94a3b8; margin-top: 0.9rem; font-family: var(--font-mono); }
.stat-strip { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0 0.25rem; }
.stat-pill { flex: 1; min-width: 140px; background: var(--sand); border-radius: 12px; padding: 0.7rem 0.9rem; }
.stat-pill .v { font-size: 1.35rem; font-weight: 700; color: var(--navy); font-family: var(--font-serif); }
.stat-pill .l { font-size: 0.7rem; color: #8a8275; text-transform: uppercase; letter-spacing: 0.05em; }
