/* ─────────────────────────────────────────────────────────────
   SAN GIACOMO LOFT · GUEST APP
   Design Token System — Luxury Warm Dark
───────────────────────────────────────────────────────────── */
:root {
  --ink:       #0a0908;
  --ink-2:     #1a1917;
  --ink-3:     #2c2b28;
  --smoke:     #f5f0e8;          /* warm off-white */
  --smoke-2:   #e8e0d0;
  --smoke-3:   #c8bfad;
  --gold:      #c9a84c;          /* deeper, more refined gold */
  --gold-l:    #e8cc82;
  --gold-glow: rgba(201,168,76,0.18);
  --text:      #f0ebe0;
  --text-2:    #a09880;
  --text-3:    #685e50;
  --green:     #4caf8a;
  --amber:     #d4954a;
  --red:       #c96060;
  --r-sm:      10px;
  --r-md:      16px;
  --r-lg:      22px;
  --r-xl:      32px;
  --sans:      'DM Sans', system-ui, sans-serif;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --nav:       68px;
  --safe:      env(safe-area-inset-bottom, 0px);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body { font-family: var(--sans); background: var(--ink); color: var(--text); overflow: hidden; height: 100%; -webkit-font-smoothing: antialiased; }
img { display: block; }
a, button { cursor: pointer; }
button { border: none; background: none; color: inherit; font-family: inherit; }


/* ─── SPLASH ─────────────────────────────────────────────── */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.splash-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 60%, #1e1a14 0%, #0a0908 100%);
}
.splash-inner {
  position: relative; z-index: 1;
  text-align: center;
  animation: fadeUp 0.8s ease forwards;
}
.splash-ornament {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.4em;
  display: block;
  margin-bottom: 22px;
  animation: pulse 2s ease-in-out infinite;
}
.splash-logo {
  width: 180px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.35));
  animation: floatY 3.5s ease-in-out infinite;
}
.splash-location {
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--text-2);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.splash-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
  animation: expandLine 1.8s ease forwards;
}

/* ─── ROOT / SCREENS ───────────────────────────────────────── */
.root {
  position: fixed; inset: 0;
  display: flex; flex-direction: column;
  max-width: 430px; margin: 0 auto;
}
.is-hidden { display: none !important; }

.screen {
  position: absolute; inset: 0;
  bottom: calc(var(--nav) + var(--safe));
  display: none;
  flex-direction: column;
  background: var(--ink);
  overflow: hidden;
}
.screen.active { display: flex; }
.screen:not(#screen-home) { animation: slideUp 0.35s cubic-bezier(.22,.68,0,1.2) forwards; }

/* ─── HOME SCREEN ─────────────────────────────────────────── */
#screen-home {
  overflow-y: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}
#screen-home::-webkit-scrollbar { display: none; }

/* HERO */
.hero {
  position: relative;
  height: 52svh;
  min-height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.04);
}
.hero-slide.active { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,9,8,0.1) 0%,
    rgba(10,9,8,0.15) 35%,
    rgba(10,9,8,0.85) 100%
  );
}

/* TOP BAR */
.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 48px 20px 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.topbar-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.brand-ornament { color: var(--gold); font-size: 0.7rem; }
.lang-pills {
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
  flex-shrink: 0;
}
.lang-pills::-webkit-scrollbar { display: none; }
.lp {
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 9px;
  border-radius: 30px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  transition: all 0.2s;
  white-space: nowrap;
}
.lp.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  font-weight: 700;
}

/* HERO TEXT */
.hero-text {
  position: absolute; bottom: 24px; left: 22px; right: 22px;
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 6px;
}
.hero-heading {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.hero-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 8px;
}
.hd-line { flex: 1; height: 1px; background: rgba(255,255,255,0.25); }
.hd-dot { font-size: 0.45rem; color: var(--gold); }
.hero-address {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}

/* SLIDE DOTS */
.slide-dots {
  position: absolute; bottom: 10px; right: 22px;
  display: flex; gap: 5px;
}
.sd {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  transition: all 0.3s;
}
.sd.active { background: var(--gold); transform: scale(1.3); }

/* HOME CONTENT */
.home-content { padding: 0 16px; }

.stat-row {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 0 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 20px;
}
.stat-pill { display: flex; align-items: baseline; gap: 2px; }
.stat-val { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--gold-l); }
.stat-unit { font-size: 0.72rem; color: var(--text-2); font-weight: 400; }
.stat-sep { color: var(--text-3); font-size: 0.9rem; }

/* MENU GRID */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.menu-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  padding: 16px 14px 14px;
  text-align: left;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: all 0.22s ease;
}
.menu-card:active { transform: scale(0.96); }
.menu-card:hover { background: var(--ink-3); border-color: rgba(255,255,255,0.12); }
.menu-card.mc-accent {
  background: linear-gradient(140deg, #1f1c0f, #2a2416);
  border-color: rgba(201,168,76,0.2);
}
.menu-card.mc-map {
  background: linear-gradient(140deg, #0d1a14, #112019);
  border-color: rgba(76,175,138,0.2);
}
.mc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.mc-icon-wrap {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
}
.mc-accent .mc-icon-wrap { background: var(--gold-glow); color: var(--gold); }
.mc-map .mc-icon-wrap { background: rgba(76,175,138,0.1); color: var(--green); }
.mc-arrow {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-top: 2px;
}
.mc-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

/* PROPERTY STRIP */
.prop-strip {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.ps-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  padding: 14px 4px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.ps-item:last-child { border-right: none; }
.ps-icon { font-size: 1.2rem; }
.ps-lbl { font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }


/* ─── INNER SCREENS ───────────────────────────────────────── */
.screen-hero {
  position: relative;
  height: 160px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  flex-shrink: 0;
  overflow: hidden;
}
.sh-wifi     { background: linear-gradient(140deg, #0d1422 0%, #0a1420 100%); }
.sh-checkin  { background: linear-gradient(140deg, #0d1a14 0%, #0a1610 100%); }
.sh-manual   { background: linear-gradient(140deg, #1a1206 0%, #140e04 100%); }
.sh-explore  { background: linear-gradient(140deg, #0f1520 0%, #0a100e 100%); }
.sh-contacts { background: linear-gradient(140deg, #1a0d1a 0%, #120a12 100%); }

.sh-decor {
  position: absolute; top: -20px; right: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
}

.back-btn {
  position: absolute; top: 48px; left: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all 0.2s;
}
.back-btn:active { transform: scale(0.9); }

.sh-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text);
}
.sh-icon {
  position: absolute; bottom: 22px; right: 24px;
  font-size: 2.4rem;
  opacity: 0.2;
}

.screen-body {
  flex: 1; overflow-y: auto;
  padding: 20px 18px 32px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: none;
}
.screen-body::-webkit-scrollbar { display: none; }


/* ─── WIFI ────────────────────────────────────────────────── */
.cred-card {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cred-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
}
.cred-lbl {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-2);
}
.cred-val {
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-l);
  word-break: break-all;
}
.cred-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0 20px;
}
.copy-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%; padding: 14px;
  background: var(--gold-glow);
  color: var(--gold);
  font-weight: 600; font-size: 0.85rem;
  border-top: 1px solid rgba(201,168,76,0.15);
  transition: all 0.25s;
}
.copy-bar:active { background: rgba(201,168,76,0.3); }

.info-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.6;
}


/* ─── CHECK-IN ────────────────────────────────────────────── */
.time-blocks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.time-block {
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.tb-green { background: rgba(76,175,138,0.1); border: 1px solid rgba(76,175,138,0.2); }
.tb-amber { background: rgba(212,149,74,0.1); border: 1px solid rgba(212,149,74,0.2); }
.tb-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.time-block.tb-green .tb-label { color: var(--green); }
.time-block.tb-amber .tb-label { color: var(--amber); }
.tb-time {
  font-family: var(--serif);
  font-size: 1.65rem; font-weight: 300;
  line-height: 1; color: var(--text);
}
.tb-sub {
  font-size: 0.7rem; color: var(--text-2);
  line-height: 1.4;
}

.detail-list { display: flex; flex-direction: column; gap: 10px; }
.detail-item {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 16px;
}
.di-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.di-title {
  font-size: 0.88rem; font-weight: 600;
  margin-bottom: 5px; color: var(--text);
}
.di-text {
  font-size: 0.8rem; color: var(--text-2);
  line-height: 1.6;
}


/* ─── HOME MANUAL ──────────────────────────────────────────── */
.photo-strip {
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none;
  border-radius: var(--r-md);
}
.photo-strip::-webkit-scrollbar { display: none; }
.ps-photo {
  height: 120px; width: 190px;
  border-radius: var(--r-md);
  object-fit: cover; flex-shrink: 0;
}

.section-lbl {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-3);
  padding: 4px 0;
}

.acc-list { display: flex; flex-direction: column; gap: 6px; }
.acc-item {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.acc-item.open { border-color: rgba(201,168,76,0.2); }
.acc-hdr {
  display: flex; align-items: center;
  gap: 12px; padding: 15px 16px;
  cursor: pointer;
}
.acc-ico { font-size: 1.2rem; flex-shrink: 0; }
.acc-lbl { font-size: 0.88rem; font-weight: 600; flex: 1; }
.acc-chev {
  font-size: 0.65rem; color: var(--text-3);
  transition: transform 0.3s;
}
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4,0,0.2,1);
}
.acc-item.open .acc-body { max-height: 300px; }
.acc-txt {
  padding: 0 16px 16px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.65;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 12px;
}

.rules-block {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--r-lg);
  padding: 20px;
}
.rb-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.rb-icon { font-size: 1.1rem; }
.rb-title { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.rules-ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.rules-ul li {
  display: flex; gap: 10px;
  font-size: 0.82rem; color: var(--text-2);
  line-height: 1.45;
}


/* ─── EXPLORE ─────────────────────────────────────────────── */
.dist-cards {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 8px;
}
.dc {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
}
.dc-ico { font-size: 1.4rem; flex-shrink: 0; }
.dc-name { font-size: 0.78rem; font-weight: 600; margin-bottom: 2px; color: var(--text); }
.dc-val { font-size: 0.72rem; color: var(--gold); font-weight: 600; }

.poi-rows { display: flex; flex-direction: column; gap: 8px; }
.pr {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.pr-emo { font-size: 1.3rem; flex-shrink: 0; }
.pr-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.pr-dist { font-size: 0.75rem; color: var(--text-2); }

.cta-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 9px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--gold) 0%, #b8923e 100%);
  color: var(--ink);
  font-weight: 700; font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(201,168,76,0.25);
  transition: all 0.25s;
  margin-top: 6px;
}
.cta-btn:active { transform: scale(0.97); }


/* ─── CONTACTS ────────────────────────────────────────────── */
.host-block {
  background: linear-gradient(140deg, #1a1912, #141207);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex; align-items: center; gap: 16px;
}
.hb-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #8c6820);
  color: var(--ink);
  font-size: 1.6rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
}
.hb-name {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 400;
  color: var(--gold-l);
}
.hb-role { font-size: 0.75rem; color: var(--text-2); margin-top: 3px; line-height: 1.4; }

.con-btns { display: flex; flex-direction: column; gap: 8px; }
.con-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  text-decoration: none; color: var(--text);
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.2s;
}
.con-btn:active { transform: scale(0.98); }
.cb-wa  { background: rgba(37,211,102,0.06); border-color: rgba(37,211,102,0.2); }
.cb-tel { background: rgba(96,165,250,0.06); border-color: rgba(96,165,250,0.18); }
.cb-mail{ background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.18); }
.cb-wa svg { color: #25d366; }
.cb-tel svg { color: #60a5fa; }
.cb-mail svg { color: var(--gold); }
.cb-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.cb-num { font-size: 0.75rem; color: var(--text-2); }

.sos-block {
  background: rgba(201,87,87,0.05);
  border: 1px solid rgba(201,87,87,0.15);
  border-radius: var(--r-lg);
  padding: 18px;
}
.sos-title {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 14px;
}
.sos-list { display: flex; flex-direction: column; gap: 10px; }
.sos-row { display: flex; justify-content: space-between; align-items: center; }
.sos-name { font-size: 0.82rem; color: var(--text-2); }
.sos-num  { font-family: 'Courier New', monospace; font-size: 0.9rem; font-weight: 700; color: var(--red); }


/* ─── BOTTOM NAV ──────────────────────────────────────────── */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: calc(var(--nav) + var(--safe));
  padding-bottom: var(--safe);
  max-width: 430px; margin: 0 auto;
  background: rgba(10,9,8,0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
}
.bn {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px; padding: 6px 0;
  color: var(--text-3);
  transition: color 0.2s;
}
.bn.active { color: var(--gold); }
.bn-lbl { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }


/* ─── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}
@keyframes pulse {
  0%,100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
@keyframes expandLine {
  from { width: 0; opacity: 0; }
  to   { width: 60px; opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0px); }
}

/* DESKTOP FRAME */
@media (min-width: 480px) {
  body { background: #050504; }
  .root { box-shadow: 0 0 100px rgba(0,0,0,0.8); border-left: 1px solid rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,0.04); }
  .bnav { border-left: 1px solid rgba(255,255,255,0.06); border-right: 1px solid rgba(255,255,255,0.06); }
}
