/* ----- Subpages (gallery / story) ----- */
body.subpage {
  padding-top: 64px;
  padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
}

.subpage-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(12, 11, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.subpage-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.subpage-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.subpage-header .lang-select {
  position: static;
}

.subpage-header #lang-dropdown {
  appearance: none;
  color-scheme: dark;
  font-family: var(--font-ui, sans-serif);
  font-size: 0.85rem;
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.subpage-header #lang-dropdown option {
  background: #1b1815;
  color: #fff;
}

.subpage-header #lang-dropdown:focus {
  outline: 2px solid var(--color-gold, #d4af37);
  outline-offset: 2px;
}

.subpage-header #lang-dropdown:hover {
  border-color: var(--color-gold, #d4af37);
}

.subpage-header .lang-select::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
}

.subpage-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 11, 10, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.subpage-bottom-bar .back-button {
  display: inline-block;
  width: min(100%, 360px);
  padding: 14px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e63946 0%, #c1121f 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

body:not(.home-page):not(.subpage) .lang-select {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

body:not(.home-page):not(.subpage) #lang-dropdown {
  appearance: none;
  color-scheme: light;
  font-size: 1rem;
  padding: 8px 36px 8px 12px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #1b1815;
  cursor: pointer;
}

body:not(.home-page):not(.subpage) #lang-dropdown option {
  background: #fff;
  color: #1b1815;
}

body:not(.home-page):not(.subpage) #lang-dropdown:focus {
  outline: 2px solid var(--color-gold, #d4af37);
  outline-offset: 2px;
}

body:not(.home-page):not(.subpage) #lang-dropdown:hover {
  border-color: var(--color-gold, #d4af37);
}

body:not(.home-page):not(.subpage) .lang-select::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 0.9rem;
  color: #666;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c1121f 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  border-color: var(--color-border);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Live Menu CTA — vivid green “on air” */
.btn-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 45%, #15803d 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 10px 32px rgba(34, 197, 94, 0.45),
    0 0 0 1px rgba(34, 197, 94, 0.2) inset;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: live-btn-glow 2.4s ease-in-out infinite;
}

.btn-live:hover {
  color: #fff;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  box-shadow:
    0 14px 40px rgba(74, 222, 128, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transform: translateY(-2px);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: live-dot-pulse 1.5s ease-out infinite;
  flex-shrink: 0;
}

@keyframes live-btn-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

@keyframes live-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.65); opacity: 1; }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); opacity: 0.85; }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); opacity: 1; }
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface);
}

/* ===== Action cards (bento) ===== */
.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 18px;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}

.action-card:hover {
  transform: translateY(-4px);
  background: var(--color-surface-hover);
  border-color: rgba(212, 165, 116, 0.35);
}

.action-icon {
  width: 40px;
  height: 40px;
}

.action-label {
  font-size: 1rem;
  font-weight: 600;
}

.action-sub {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: -4px;
}

/* ----- Visit: map + call (minimal) ----- */
.visit-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(212, 165, 116, 0.32);
  color: var(--color-text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease;
}

.visit-call-btn:hover,
.visit-call-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.visit-call-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.visit-call-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.visit-call-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.visit-call-number {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-gold);
  letter-spacing: 0.02em;
}

.subpage-bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 420px);
  margin: 0 auto;
}

.subpage-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: rgba(212, 165, 116, 0.14);
  border: 1px solid rgba(212, 165, 116, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.subpage-call-btn:hover,
.subpage-call-btn:focus-visible {
  transform: translateY(-1px);
  border-color: var(--color-gold, #d4a574);
}

.subpage-call-btn img {
  width: 20px;
  height: 20px;
}

/* ===== Shared / gallery ===== */
.back-button {
  display: inline-block;
  padding: 10px 20px;
  background: #b22222;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
  background: #ff6347;
  transform: translateY(-2px);
}

.heritage-title,
.heritage-subtitle,
.heritage-text,
.food-title,
.food-subtitle,
.food-item {
  color: white;
}

.icon {
  width: 4vw;
  max-width: 50px;
  min-width: 24px;
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icon:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.social-icons {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  gap: 24px;
  z-index: 1000;
}

.social-icons img {
  width: 36px;
  height: 36px;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.hub-btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-btn-primary {
  background: #c41e3a;
  color: #fff;
  border: 2px solid #fff;
}

.hub-btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: #8b0000;
  border: 2px solid #c41e3a;
}
