/* ═══════════════════════════════════════════════════════════════════════════
   See Barcelona · Smart Welcome Card — base layer
   Direction: editorial Mediterranean + urban guide + friendly technology.
   Load order: style.css → experience.css → native-guide.css → interaction.css
   (the last two are injected by scripts/build-static.mjs)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Colour tokens ─────────────────────────────────────────────────────── */
:root {
  /* Editorial base */
  --see-ink: #1c1b1a;
  --see-paper: #fbf7f1;
  --see-white: #ffffff;
  --see-sand: #efe2d0;
  --see-line: #e7ddd1;
  --see-muted: #6f6a64;

  /* Brand accents */
  --see-gold: #c49a4a;
  --see-gold-dark: #9d7426;
  --see-gold-text: #7f5d1a;      /* AA-safe gold for small text on paper/sand */
  --see-terracotta: #b45f3c;
  --see-terracotta-deep: #8f4426;

  /* Mediterranean depth (derived from --see-blue) */
  --see-blue: #1b4f72;
  --see-sea-deep: #1c1b1a;
  --see-green: #3d6b5c;
  --see-cream: #f4ead9;

  /* Seasonal (logo variants) */
  --see-spring: #76b82a;
  --see-summer: #fbba00;
  --see-autumn: #ef7d00;
  --see-winter: #009cb4;
  --see-season: var(--see-summer);

  /* Semantic aliases */
  --text-strong: var(--see-ink);
  --text-body: var(--see-ink);
  --text-muted: var(--see-muted);
  --text-eyebrow: var(--see-gold-text);
  --text-link: var(--see-gold-text);
  --text-on-dark: var(--see-paper);
  --surface-page: var(--see-paper);
  --surface-card: var(--see-white);
  --surface-sunk: var(--see-sand);
  --surface-ink: var(--see-ink);
  --surface-featured: var(--see-terracotta);
  --border-default: var(--see-line);
  --border-strong: #d8cab6;
  --accent: var(--see-gold-dark);
  --accent-featured: var(--see-terracotta);
  --interactive: var(--see-blue);
  --success: var(--see-green);
  --tag-bg: var(--see-sand);
  --tag-text: var(--see-gold-text);
}

/* ── Type, space, shape ────────────────────────────────────────────────── */
:root {
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --type-h1-size: 3.052rem;
  --type-h2-size: 2.441rem;
  --type-h3-size: 1.563rem;
  --type-display-tracking: -0.035em;
  --type-display-leading: 1.06;
  --type-body-lg: 1.125rem;
  --type-body: 1rem;
  --type-body-sm: 0.9375rem;
  --type-eyebrow: 0.8125rem;
  --type-tag: 0.72rem;
  --type-footnote: 0.8125rem;
  --type-body-leading: 1.6;
  --tracking-eyebrow: 0.01em;
  --tracking-tag: 0.02em;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 16px 40px rgba(28, 27, 26, 0.08);
  --shadow-soft: 0 8px 24px rgba(28, 27, 26, 0.06);
  --shadow-raised: 0 28px 70px rgba(28, 27, 26, 0.20);

  --content-max: 1180px;
  --gutter: 24px;
}

/* ── Standalone helpers ────────────────────────────────────────────────── */
.logo-fallback { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.04em; color: var(--see-ink); line-height: 1; }
.logo-fallback em { font-style: normal; font-weight: 400; }
.chat-demo-note { align-self: center; font-size: 11px; color: var(--see-muted); background: var(--see-sand); border-radius: var(--radius-pill); padding: 5px 13px; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  /* Seasonal accent — written by assets/app.js (defaults = Summer) */
  --season: var(--see-summer);
  --season-ink: #9d7426;
  --season-soft: #fdf3da;
  --px: clamp(20px, 4vw, 40px);
  --hero-veil: rgba(20, 18, 16, .5); /* flat veil over the hero photo (desktop) */
  --wrap: 1240px;
  --max: 760px;
  --header-h: 72px;
  --anchor-offset: 92px;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--anchor-offset); }
body { font-family: var(--font-body); background: var(--see-paper); color: var(--see-ink); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--see-ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Inline copy in three languages, driven by <html lang> (set by setLang) */
.l { display: none; }
html[lang="en"] .l-en, html[lang="es"] .l-es, html[lang="fr"] .l-fr { display: inline; }

/* ── HEADER ────────────────────────────────────────────────────────────── */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); padding: 8px max(var(--px), calc((100% - var(--wrap)) / 2 + var(--px))); border-bottom: 1px solid var(--see-line); background: rgba(251,247,241,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; }
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-link img { display: block; height: 56px; width: auto; }
.header-right { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.top-nav { display: flex; gap: clamp(16px, 2.4vw, 32px); }
.top-nav a { position: relative; font-size: 14px; font-weight: 500; color: var(--see-ink); text-decoration: none; padding: 8px 0; }
.top-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--season); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.top-nav a:hover::after, .top-nav a:focus-visible::after { transform: scaleX(1); }
.lang-switcher { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--see-line); border-radius: var(--radius-pill); background: var(--see-white); }
.lang-btn { background: none; border: 0; border-radius: var(--radius-pill); min-width: 38px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--see-muted); cursor: pointer; letter-spacing: 0.04em; transition: background .15s, color .15s; }
.lang-btn:hover { color: var(--see-ink); }
.lang-btn.active { background: var(--see-ink); color: var(--see-paper); }

/* ── SHARED TYPE ───────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--type-eyebrow); font-weight: 600; letter-spacing: var(--tracking-eyebrow); color: var(--see-gold-text); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--season); flex-shrink: 0; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.03em; color: var(--see-ink); margin-bottom: 10px; }
.section-sub { font-size: 1rem; color: var(--see-muted); line-height: 1.6; max-width: 62ch; }
.section-head { display: grid; gap: 14px 56px; margin-bottom: clamp(28px, 4vw, 44px); align-items: end; }
.section-head .section-title, .section-head .section-sub { margin-bottom: 0; }
.section-head-main { min-width: 0; }
.section-head-main .section-title { margin-bottom: 10px; }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

/* ── BETA STRIP ────────────────────────────────────────────────────────── */
.beta-banner { background: var(--see-sand); border-bottom: 1px solid rgba(28,27,26,0.08); }
.beta-banner-inner { max-width: var(--wrap); margin: 0 auto; padding: 7px var(--px); display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.4; }
.beta-tag { flex-shrink: 0; background: var(--see-ink); color: var(--see-paper); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 9px; border-radius: var(--radius-pill); }
.beta-text { color: #57524c; }

/* ── HERO ──────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--see-paper); }
/* Photo: full-bleed behind the copy on desktop, a banner above it on small screens.
   Flat colours only: legibility comes from one flat veil (--hero-veil). */
.hero-media { position: relative; height: clamp(200px, 42vw, 300px); background: #7d7266; }
.hero-scene { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

.hero-grid { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 32px var(--px) 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.hero-copy { max-width: 520px; }
.season-pill { display: inline-flex; align-items: center; gap: 9px; background: var(--see-white); color: var(--see-ink); border: 1px solid var(--see-line); border-radius: var(--radius-pill); padding: 5px 15px 5px 6px; font-size: 12.5px; font-weight: 600; margin-bottom: 20px; }
.season-pill .season-mark { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; display: block; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.3vw, 3.5rem); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; color: var(--see-ink); margin-bottom: 12px; }
.hero-title em { font-style: italic; color: var(--see-terracotta); }
.hero-subtitle { font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 400; line-height: 1.25; letter-spacing: -0.01em; color: var(--see-terracotta-deep); margin-bottom: 16px; }
.hero-sub { font-size: 1rem; color: #47423c; line-height: 1.65; max-width: 44ch; margin-bottom: 22px; }
.hotel-banner { display: block; border-left: 3px solid var(--season); padding: 2px 0 3px 16px; margin-bottom: 26px; max-width: 420px; }
.hotel-eyebrow { display: block; font-size: 12.5px; font-weight: 600; color: var(--see-gold-text); margin-bottom: 2px; }
.hotel-name { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--see-ink); overflow-wrap: anywhere; }
.hotel-tagline { display: block; font-size: 13.5px; color: var(--see-muted); margin-top: 3px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-thought { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-style: italic; font-size: .95rem; line-height: 1.4; color: var(--see-muted); max-width: 40ch; }
.hero-thought::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: var(--season); flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, filter .18s ease, border-color .15s, background .15s; line-height: 1.1; text-align: center; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--see-ink); color: var(--see-paper); }
.btn-primary:hover { filter: brightness(1.25); }
.btn-secondary { background: rgba(255,253,249,.92); color: var(--see-ink); border-color: rgba(28,27,26,.16); }
.btn-secondary:hover { border-color: var(--see-ink); background: var(--see-white); }

/* one orchestrated moment: the hero copy settles in once */
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: hero-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
.hero-copy > *:nth-child(6) { animation-delay: .30s; }
.hero-copy > *:nth-child(7) { animation-delay: .36s; }

/* ── SMART GUIDE CARD (lives in the hero) ──────────────────────────────── */
.guide-section { position: relative; background: var(--see-white); border: 1px solid var(--see-line); border-radius: 22px; box-shadow: 0 24px 60px rgba(28,27,26,.16); scroll-margin-top: var(--anchor-offset); min-width: 0; }
.guide-inner { padding: 26px 24px 18px; display: flex; flex-direction: column; gap: 16px; }
.guide-head .eyebrow { margin-bottom: 6px; }
.guide-head .section-title { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: 0; }
/* less explanatory text: the composer is the star. Copy stays in the DOM (translations still run). */
.guide-head .section-sub, .guide-examples { display: none; }

/* Native Smart Guide mounts inside .guide-embed (assets/native-guide.js) */
.guide-embed { border-radius: 16px; background: var(--see-white); border: 1px solid var(--see-line); overflow: hidden; }
.guide-iframe { display: block; width: 100%; min-height: 430px; border: none; background: var(--see-white); }
/* legal / editorial notes: present, but quiet */
.guide-beta-note, .guide-fallback, .guide-editorial-note { font-size: 11px; line-height: 1.5; color: #8a847d; }
.guide-beta-note { display: flex; align-items: flex-start; gap: 6px; font-weight: 400; }
.guide-beta-note .dot { color: var(--season); flex-shrink: 0; font-size: 8px; margin-top: 4px; }
.guide-fallback-link { color: #6f6a64; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.guide-fallback-link:hover { color: var(--see-ink); }
.guide-editorial-note { padding-top: 0; }

/* Hint injected by askGuide() before .guide-embed */
#guideTopicHint { font-size: 12.5px; color: var(--see-ink); background: var(--season-soft); border-radius: 12px; padding: 9px 12px; line-height: 1.45; border-top: 0; }

/* QUICK IDEAS */
.quick { background: var(--see-paper); border-bottom: 1px solid var(--see-line); }
.quick-inner { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--px); display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.quick-label { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--see-muted); flex-shrink: 0; }
.quick-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.quick-tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: transparent; color: var(--see-ink); border: 1px solid #cfc3b3; border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.quick-tag:hover { border-color: var(--see-ink); background: var(--see-white); }
.quick-tag:active { transform: scale(0.98); }

/* DISCOVER */
.discover-section { background: var(--see-ink); color: var(--see-paper); padding: clamp(56px, 8vw, 104px) var(--px); }
.discover-inner { max-width: var(--wrap); margin: 0 auto; }
.discover-inner .eyebrow { color: var(--season); }
.discover-inner .section-title { color: var(--see-paper); }
.discover-inner .section-sub { color: rgba(251,247,241,0.72); }
.discover-note { margin-top: 20px; font-size: 13px; color: rgba(251,247,241,0.6); display: flex; align-items: center; gap: 9px; }
.discover-note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--season); flex-shrink: 0; }

/* ── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--see-paper); border-top: 1px solid var(--see-line); padding: clamp(36px, 5vw, 56px) var(--px); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 24px 56px; }
.footer-brand img { height: 60px; width: auto; display: block; }
.footer-meta { font-size: 13.5px; color: var(--see-muted); line-height: 1.7; margin-bottom: 14px; max-width: 64ch; }
.footer-disclaimer { font-size: 12.5px; color: var(--see-muted); line-height: 1.6; margin-bottom: 20px; max-width: 64ch; }
.footer-links { display: flex; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--see-line); padding-top: 16px; }
.footer-links a { font-size: 13px; color: var(--see-ink); text-decoration: none; padding: 4px 0; }
.footer-links a:hover { color: var(--see-gold-text); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 96px minmax(0, 1fr); } }

/* RESPONSIVE */
@media (min-width: 700px) {

}
@media (min-width: 1000px) {
  .hero-media { position: absolute; inset: 0; height: auto; z-index: -1; }
  .hero-media::after { content: ''; position: absolute; inset: 0; background: var(--hero-veil); }
  .hero-scene { object-position: 50% 45%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(400px, 440px); gap: clamp(32px, 4vw, 72px); align-items: center; padding-top: 56px; padding-bottom: 64px; }
  .hero-copy { position: relative; max-width: 560px; padding: 30px 34px 32px; background: rgba(18,17,15,.68); border-radius: 0 18px 18px 0; box-shadow: 0 18px 50px rgba(0,0,0,.12); }
  /* copy sits on the photograph */
  .hero-title { color: #fff; }
  .hero-subtitle { color: #f0dcc0; }
  .hero-sub { color: rgba(255,255,255,.88); }
  .hotel-eyebrow { color: var(--season); }
  .hotel-name { color: #fff; }
  .hotel-tagline { color: rgba(255,255,255,.78); }
  .hero .btn-primary { background: var(--see-paper); color: var(--see-ink); }
  .hero .btn-primary:hover { filter: none; background: #fff; }
  .hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
  .hero .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.1); }
  .hero-thought { color: rgba(255,255,255,.78); }
  /* partners: intro on the left, compact rows on the right */





}
@media (max-width: 999px) {
  .hero-grid { padding-top: 26px; padding-bottom: 44px; gap: 28px; }
}
@media (max-width: 720px) {
  .top-nav { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; --anchor-offset: 80px; }
  .logo-link img { height: 48px; }
  body { font-size: 16.5px; }
  .hero-ctas { flex-wrap: nowrap; gap: 8px; }
  .hero-ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; min-height: 46px; font-size: 14px; }
  .guide-inner { padding: 18px 16px 16px; }
  .quick-inner { padding: 18px var(--px); }
  .quick-tags { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }




}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > * { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}


/* Final UX refinements after visual review */
.guide-editorial-note { display: none; }
.guide-beta-note { margin-top: -4px; }
.guide-inner { gap: 12px; }
.guide-section { scroll-margin-top: 96px; }
@media (min-width: 1000px) {
  .hero-grid { min-height: 610px; }
  .hero-scene { object-position: 50% 58%; }
}
@media (max-width: 999px) {
  .hero-media { height: clamp(190px, 48vw, 280px); }
}
@media (max-width: 560px) {
  .hero-media { height: 180px; }
  .hero-grid { padding-top: 24px; }
}


/* Editorial visual starters */
.quick-visual{background:var(--see-paper);border-bottom:1px solid var(--see-line);padding:clamp(42px,6vw,72px) var(--px)}
.quick-visual-inner{max-width:var(--wrap);margin:0 auto}
.quick-visual-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:22px}
.quick-visual-intro{max-width:50ch;color:var(--see-muted);font-size:14px;line-height:1.55}
.quick-visual-grid{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(230px,280px);gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:2px 2px 12px;scrollbar-width:thin}
.quick-visual-card{position:relative;min-height:280px;scroll-snap-align:start;border:0;border-radius:16px;overflow:hidden;padding:0;background:#111;color:#fff;cursor:pointer;text-align:left;box-shadow:0 8px 24px rgba(20,18,15,.08);transition:transform .18s ease}
.quick-visual-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.quick-visual-card:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.72))}
.quick-visual-copy{position:absolute;z-index:2;left:18px;right:50px;bottom:18px;display:flex;flex-direction:column;gap:3px}
.quick-visual-copy strong{font-family:var(--font-display);font-size:1.55rem;line-height:1.05}
.quick-visual-copy small{font-size:12px;color:rgba(255,255,255,.82)}
.quick-visual-arrow{position:absolute;z-index:2;right:16px;bottom:16px;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#111;font-size:18px}
.quick-visual-card:hover,.quick-visual-card:focus-visible{transform:translateY(-2px);outline:2px solid var(--season);outline-offset:2px}
.magazine-topic-links .magazine-topic{display:inline-flex;text-decoration:none;color:var(--see-ink);border-bottom:1px solid #cfc3b3;padding-bottom:3px}
.magazine-topic-links .magazine-topic:hover{color:var(--see-gold-text);border-color:var(--see-gold-text)}
@media(max-width:900px){.quick-visual-grid{grid-auto-columns:minmax(220px,44vw)}.quick-visual-card{min-height:240px}}
@media(max-width:560px){.quick-visual-head{display:block}.quick-visual-intro{margin-top:8px}.quick-visual-grid{grid-auto-columns:78vw;gap:10px}.quick-visual-card{min-height:205px}.quick-visual-copy{left:13px;bottom:13px}.quick-visual-copy strong{font-size:1.25rem}.quick-visual-copy small{display:none}.quick-visual-arrow{width:30px;height:30px;right:12px;bottom:12px}}
