/* ═══════════════════════════════════════════
   HotelGuide — Guest CSS
   Dark glassmorphism, mobile-first
═══════════════════════════════════════════ */

:root {
  --bg:            #080C14;
  --surface:       rgba(255,255,255,0.055);
  --surface-hover: rgba(255,255,255,0.095);
  --border:        rgba(255,255,255,0.09);
  --border-hover:  rgba(255,255,255,0.20);
  --text:          #F0F0F0;
  --text-dim:      rgba(240,240,240,0.45);
  --text-mid:      rgba(240,240,240,0.70);
  --accent:        #4FC3F7;
  --on-accent:     #080C14;   /* text on accent backgrounds, set per hotel by HotelAccent */
  --accent-text:   var(--accent);   /* accent used as text/icon colour */
  --accent2:       color-mix(in srgb, var(--accent) 70%, var(--tone));
  --pill:          color-mix(in srgb, var(--accent) 12%, transparent);
  --radius:        20px;
  --tone:          white;     /* what accent shades are mixed towards */
  --orb-tone:      black;
  --heading-from:  #fff;
  --drawer-bg:     #0F1520;
}

/* Light palette — enabled per hotel (HotelAccent renders the .guest-theme-light marker) */
:root:has(.guest-theme-light) {
  --bg:            #F4F6FA;
  --surface:       rgba(255,255,255,0.70);
  --surface-hover: rgba(255,255,255,0.95);
  --border:        rgba(8,12,20,0.09);
  --border-hover:  rgba(8,12,20,0.20);
  --text:          #121826;
  --text-dim:      rgba(18,24,38,0.50);
  --text-mid:      rgba(18,24,38,0.75);
  --accent-text:   color-mix(in srgb, var(--accent) 65%, black);
  --tone:          black;
  --orb-tone:      white;
  --heading-from:  #121826;
  --drawer-bg:     #FFFFFF;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background orbs ─────────────────────── */
/* orb1/orb2 are darker shades of the hotel accent; orb3 stays a neutral warm gold */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 18s ease-in-out infinite alternate;
}
.orb1 { width:380px; height:380px; background:color-mix(in srgb, var(--accent) 85%, var(--orb-tone)); opacity:.35; top:-120px;  left:-80px;  animation-delay:0s;   }
.orb2 { width:300px; height:300px; background:color-mix(in srgb, var(--accent) 55%, var(--orb-tone)); opacity:.30; bottom:100px; right:-80px; animation-delay:-6s;  }
.orb3 { width:220px; height:220px; background:#C4923A; opacity:.10; top:55%;     left:30%;    animation-delay:-12s; }

@keyframes drift {
  from { transform: translate(0,0)     scale(1);    }
  to   { transform: translate(30px,40px) scale(1.08); }
}

/* ── Page wrapper ────────────────────────── */
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 48px;
}

/* ── Header ──────────────────────────────── */
.guest-header {
  padding: 40px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeDown .7s ease both;
}
.logo-img {
  height: 44px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
  /* opacity: .92; */
}
.logo-text-fallback {
  font-size: 13px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.header-text { text-align: center; }
.header-text h1 {
  font-size: clamp(30px, 9vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--heading-from) 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-text p {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: .04em;
}

/* ── Language strip ──────────────────────── */
.lang-strip {
  display: flex;
  gap: 6px;
  animation: fadeDown .7s .1s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.lang-btn {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 5px 13px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
}
.lang-btn.active {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  font-weight: 600;
}
.lang-btn:hover:not(.active) {
  border-color: var(--border-hover);
  color: var(--text);
}

/* ── Search ──────────────────────────────── */
.search-wrap {
  padding: 8px 16px;
  animation: fadeUp .6s .2s ease both;
  opacity: 0;
  animation-fill-mode: forwards;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 13px 18px;
  backdrop-filter: blur(16px);
  transition: border-color .2s, background .2s;
}
.search-box:focus-within {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.search-box svg    { opacity: .4; flex-shrink: 0; }
.search-box input  {
  border: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
}
.search-box input::placeholder { color: var(--text-dim); }

/* ── Section header ──────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 10px;
}
.section-header span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Category grid ───────────────────────── */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 12px;
}

/* ── Card ────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px 44px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s, border-color .2s;
  opacity: 0;
  animation: cardIn .5s ease forwards;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
}
.card:hover, .card:active {
  transform: scale(.985);
  background: var(--surface-hover);
  border-color: var(--border-hover);
}
.card:hover::after, .card:active::after { opacity: 1; }

/* stagger animations */
.card:nth-child(1)  { animation-delay:.12s } .card:nth-child(2)  { animation-delay:.17s }
.card:nth-child(3)  { animation-delay:.22s } .card:nth-child(4)  { animation-delay:.27s }
.card:nth-child(5)  { animation-delay:.32s } .card:nth-child(6)  { animation-delay:.37s }
.card:nth-child(7)  { animation-delay:.42s } .card:nth-child(8)  { animation-delay:.47s }
.card:nth-child(9)  { animation-delay:.52s } .card:nth-child(10) { animation-delay:.57s }
.card:nth-child(11) { animation-delay:.62s } .card:nth-child(12) { animation-delay:.67s }
.card:nth-child(13) { animation-delay:.72s } .card:nth-child(14) { animation-delay:.77s }
.card:nth-child(15) { animation-delay:.82s }

/* card internals */
.card-icon {
  display: flex;
  align-items: center;
  color: var(--accent-text);
  opacity: .85;
}
.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}
.card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--accent-text);
  background: var(--pill);
  border-radius: 50px;
  padding: 2px 8px;
  width: fit-content;
  margin-top: 2px;
}
.card-arrow {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-dim);
  transition: background .2s, border-color .2s, color .2s;
}
.card:hover .card-arrow,
.card:active .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* featured (full-width) card */
.card.featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  gap: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(13,64,96,.25));
  border-color: color-mix(in srgb, var(--accent) 20%, transparent);
}
.card.featured .card-icon svg { width: 28px; height: 28px; }
.card.featured .card-name     { font-size: 15px; font-weight: 600; }
.card.featured .card-arrow    { position: static; margin-left: auto; }

/* ── POI list page ───────────────────────── */
.poi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 20px 16px;
}
.poi-header h2 { font-size: 20px; font-weight: 600; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 14px;
  color: var(--text-mid);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.back-btn:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.poi-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px;
}

.poi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.poi-card:hover, .poi-card:active {
  transform: scale(.99);
  border-color: var(--border-hover);
}

.poi-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.poi-body   { padding: 16px; }
.poi-name   { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.poi-address {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.poi-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.poi-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-mid);
  text-decoration: none;
  transition: all .2s;
}
.poi-action-btn.maps {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent-text);
}

/* ── Detail drawer ───────────────────────── */
.poi-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  animation: fadeIn .2s ease;
}
.poi-drawer {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--drawer-bg);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .3s ease;
}
.drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  color: var(--text-mid);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.drawer-close:hover { background: var(--surface-hover); color: var(--text); }
.drawer-img   { height: 200px; background-size: cover; background-position: center; }
.drawer-body  { padding: 20px; }
.drawer-body h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.drawer-desc  { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.drawer-info  { font-size: 13px; color: var(--text-mid); margin-bottom: 7px; }
.drawer-info a { color: var(--accent-text); text-decoration: none; }
.drawer-actions { display: flex; gap: 10px; margin-top: 18px; padding-bottom: 4px; }
.drawer-btn {
  flex: 1;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all .2s;
}
.drawer-btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.drawer-btn:hover { opacity: .85; }

/* ── Rating (thumbs up / down) ───────────── */
.drawer-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.rating-label { font-size: 13px; color: var(--text-mid); }
.rating-btns  { display: flex; gap: 8px; flex-shrink: 0; }
.rating-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.rating-btn:hover:not(:disabled) { border-color: var(--border-hover); color: var(--text); }
.rating-btn:disabled { cursor: default; }
.rating-btn.up.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  animation: pop .25s ease;
}
.rating-btn.down.active {
  background: color-mix(in srgb, #EF5350 18%, transparent);
  border-color: #EF5350;
  color: #EF5350;
  animation: pop .25s ease;
}
@keyframes pop { 50% { transform: scale(1.15); } }

/* ── Loading / empty states ──────────────── */
.guest-loading {
  display: flex;
  justify-content: center;
  padding: 80px 20px;
}
.guest-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ── Footer ──────────────────────────────── */
.guest-footer {
  text-align: center;
  padding: 36px 20px 0;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .06em;
}
.guest-footer a { color: var(--accent-text); text-decoration: none; }

/* ── Animations ──────────────────────────── */
/* Interactive render replaces the prerendered DOM; show it as is instead of animating in again */
.no-entrance .guest-header,
.no-entrance .lang-strip,
.no-entrance .card {
  animation: none;
  opacity: 1;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}
@keyframes slideUp {
  from { transform: translateY(40px); }
  to   { transform: translateY(0);    }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
