:root {
  --tg-bg: var(--tg-theme-bg-color, #ffffff);
  --tg-text: var(--tg-theme-text-color, #0f172a);
  --tg-hint: var(--tg-theme-hint-color, #64748b);
  --tg-link: var(--tg-theme-link-color, #2563eb);
  --tg-btn: var(--tg-theme-button-color, #C8A65D);
  --tg-btn-text: var(--tg-theme-button-text-color, #ffffff);
  --tg-secondary-bg: var(--tg-theme-secondary-bg-color, #f8fafc);
  --accent: #C8A65D;
  --accent-dark: #b8944d;
  --accent2: #2563eb;
  --green: #27ae60;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--tg-bg);
  color: var(--tg-text);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  background: var(--tg-secondary-bg);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-shrink: 0;
}
.tab-btn {
  flex: 1;
  padding: 12px 8px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--tg-hint);
  cursor: pointer;
  transition: color .2s, border-bottom .2s;
  border-bottom: 3px solid transparent;
}
.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-btn { font-family: var(--font-body); }

.lang-toggle-btn {
  flex: 0 0 auto;
  padding: 0 14px;
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--tg-hint);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  font-family: var(--font-body);
  transition: color .2s;
}
.lang-toggle-btn:hover { color: var(--accent); }

/* ── Map tab ── */
#tab-map {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
}
#tab-map.hidden, #tab-brand.hidden { display: none; }

.filter-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--tg-bg);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: var(--tg-bg);
  color: var(--tg-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

#map {
  flex: 1;
  min-height: 0;
  z-index: 0;
}

.google-attribution {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 500;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #555;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 500;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  letter-spacing: 0.2px;
}

/* ── Place panel (slide up) ── */
.place-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--tg-bg);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  padding: 12px 16px 24px;
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 1000;
  max-height: 60dvh;
  overflow-y: auto;
}
.place-panel.open { transform: translateY(0); }

.panel-handle {
  width: 40px; height: 4px;
  background: rgba(0,0,0,0.15);
  border-radius: 2px;
  margin: 0 auto 14px;
}

.place-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--tg-secondary-bg);
}
.place-photo-placeholder {
  width: 100%; height: 120px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}

.place-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.place-name {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
}
.audio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--tg-secondary-bg);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.audio-btn:active { background: #e0e0e0; }
.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--tg-secondary-bg);
  color: var(--tg-hint);
}
.badge.rating { background: #fff8e1; color: #e67e22; }
.badge.price  { background: #e8f5e9; color: var(--green); }
.badge.cat    { background: #e3f0ff; color: var(--accent2); }

.place-desc {
  font-size: 13px;
  color: var(--tg-hint);
  line-height: 1.5;
  margin-bottom: 14px;
}

.place-actions {
  display: flex;
  gap: 10px;
}
.btn-maps {
  flex: 1;
  padding: 11px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn-close-panel {
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(0,0,0,0.1);
  background: var(--tg-bg);
  color: var(--tg-text);
  font-size: 14px;
  cursor: pointer;
}

/* ── Brand tab ── */
#tab-brand {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 40px;
}

/* ── Editorial dark hero (mirrors placewave.pro) ── */
.brand-hero {
  position: relative;
  text-align: center;
  /* break out of the tab's side/top padding for a full-bleed dark band */
  margin: -20px -16px 22px;
  padding: 30px 22px 28px;
  background: #0D0C09;
  color: #EDE8DF;
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.brand-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(200,166,93,.22) 0%, rgba(200,166,93,0) 65%);
  pointer-events: none;
}
.brand-hero-inner { position: relative; z-index: 1; }
.brand-logo {
  margin-bottom: 14px;
}
.brand-logo img {
  box-shadow: 0 6px 22px rgba(0,0,0,.45), 0 0 0 1px rgba(200,166,93,.35);
}
.brand-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200,166,93,.10);
  border: 1px solid rgba(200,166,93,.30);
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 14px;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #EDE8DF;
  margin-bottom: 12px;
}
.brand-title em {
  font-style: italic;
  color: var(--accent);
}
.brand-lead {
  font-size: 14px;
  color: rgba(237,232,223,.62);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto;
}
.brand-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.brand-hero-cta {
  display: block;
  background: var(--accent);
  color: #0D0C09;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .12s;
}
.brand-hero-cta:active { transform: scale(.985); }
.brand-hero-cta:hover { background: var(--accent-dark); }
.brand-hero-cta2 {
  display: block;
  background: transparent;
  color: rgba(237,232,223,.92);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid rgba(237,232,223,.22);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.brand-hero-cta2:hover { border-color: var(--accent); color: var(--accent); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 22px;
}
.stat-card {
  background: var(--tg-secondary-bg);
  border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-card .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-card .label {
  font-size: 12px;
  color: var(--tg-hint);
  margin-top: 4px;
}

/* ── Revenue band (the money angle) ── */
.revenue-band {
  position: relative;
  background: linear-gradient(135deg, #1a160d 0%, #0D0C09 100%);
  border: 1px solid rgba(200,166,93,.30);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  margin: 0 0 24px;
  color: #EDE8DF;
  overflow: hidden;
}
.revenue-icon { font-size: 30px; margin-bottom: 8px; }
.revenue-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #EDE8DF;
  margin-bottom: 8px;
  line-height: 1.2;
}
.revenue-desc {
  font-size: 13px;
  color: rgba(237,232,223,.62);
  line-height: 1.55;
  max-width: 330px;
  margin: 0 auto 16px;
}
.revenue-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.revenue-chips span {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(200,166,93,.10);
  border: 1px solid rgba(200,166,93,.30);
  border-radius: 20px;
  padding: 5px 12px;
}

/* ── Pricing ── */
.price-sub {
  font-size: 13px;
  color: var(--tg-hint);
  line-height: 1.5;
  margin: -6px 0 16px;
}
.pricing-list { display: flex; flex-direction: column; gap: 14px; }
.price-card {
  position: relative;
  background: var(--tg-secondary-bg);
  border: 1px solid rgba(127,127,127,.18);
  border-radius: 16px;
  padding: 20px;
}
.price-card.popular {
  border-color: var(--accent);
  box-shadow: 0 6px 26px rgba(200,166,93,.20);
}
.price-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0D0C09;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.price-plan {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tg-hint);
  margin-bottom: 6px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
  color: var(--tg-text);
  margin-bottom: 6px;
}
.price-amount span { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--tg-hint); }
.price-desc { font-size: 13px; color: var(--tg-hint); margin-bottom: 16px; }
.price-feats { list-style: none; margin: 0 0 18px; padding: 0; }
.price-feats li {
  font-size: 13px;
  color: var(--tg-text);
  padding: 7px 0;
  border-bottom: 1px solid rgba(127,127,127,.14);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.4;
}
.price-feats li:last-child { border-bottom: none; }
.price-feats li::before { content: "✓"; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.price-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  transition: opacity .15s, transform .12s;
}
.price-cta:active { transform: scale(.985); }
.price-cta-outline { border: 1.5px solid rgba(127,127,127,.30); color: var(--tg-text); background: none; }
.price-cta-gold { background: var(--accent); color: #0D0C09; border: none; box-shadow: 0 4px 18px rgba(200,166,93,.30); }
.price-cta-gold:hover { background: var(--accent-dark); }
.price-cta-fill { background: #238636; color: #fff; border: none; }
.price-cta-fill:hover { opacity: .9; }

.section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 20px 0 12px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius);
  padding: 14px;
}
.feature-icon { font-size: 22px; flex-shrink: 0; }
.feature-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.feature-text p  { font-size: 12px; color: var(--tg-hint); line-height: 1.5; }

.sector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 4px;
}
.sector-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius);
  padding: 12px;
}
.sector-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}
.sector-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.sector-card p  { font-size: 11px; color: var(--tg-hint); line-height: 1.4; margin: 0; }

.audience-block {
  background: linear-gradient(135deg, #fff8e1, #fdebd0);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}
.audience-block h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.audience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.audience-tags span {
  background: white;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.placement-block {
  margin: 16px 0;
}
.placement-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--tg-secondary-bg);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.placement-option .num {
  width: 28px; height: 28px;
  background: rgba(200,166,93,.15);
  color: var(--accent);
  border: 1px solid rgba(200,166,93,.4);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.placement-option h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.placement-option p  { font-size: 12px; color: var(--tg-hint); line-height: 1.4; }

.cta-block {
  background: #0D0C09;
  border: 1px solid rgba(200,166,93,.25);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  margin-top: 20px;
  color: white;
}
.cta-block h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.cta-block p  { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #0D0C09;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .15s;
}
.btn-cta:hover { background: var(--accent-dark); }

/* Marker styles */
.marker-restaurant, .marker-attraction {
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  border: 2px solid white;
}
.marker-restaurant { background: var(--accent); }
.marker-attraction  { background: var(--accent2); }
.marker-restaurant span, .marker-attraction span {
  transform: rotate(45deg);
  font-size: 14px;
}
