@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #FAF8F5;
  --color-surface: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-accent: #5B7C5A;
  --color-accent-light: #E8F0E8;
  --color-warm: #C4956A;
  --color-warm-light: #F5EDE5;
  --color-border: #E8E4E0;
  --color-danger: #D94F4F;
  --color-overlay: rgba(0,0,0,0.45);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 50%;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-modal: 0 -4px 30px rgba(0,0,0,0.15);
  --shadow-fab: 0 4px 16px rgba(91,124,90,0.35);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --nav-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Language Switcher (floating) ─────────────────────── */
.lang-switcher {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.lang-switcher button {
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: 18px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-switcher button.active {
  background: var(--color-accent);
  color: #fff;
}

/* ── Hero Section ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  background: linear-gradient(135deg, #5B7C5A 0%, #3D5C3C 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 24px 20px 32px;
  text-align: center;
  color: #fff;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  border: 2px solid rgba(255,255,255,0.5);
}

.hero-play:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(255,255,255,0.35); }

.hero-play svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }

/* ── Welcome Section ──────────────────────────────────── */
.welcome-section {
  padding: 28px 20px 20px;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.welcome-text {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dog-note {
  background: var(--color-warm-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--color-text);
  border-left: 3px solid var(--color-warm);
}

/* ── Section Headers ──────────────────────────────────── */
.section-header {
  padding: 24px 20px 12px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
}

/* ── Cards Grid ───────────────────────────────────────── */
.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 16px;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.card:active { transform: scale(0.98); }

.card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.card-icon.green { background: var(--color-accent-light); color: var(--color-accent); }
.card-icon.warm  { background: var(--color-warm-light); color: var(--color-warm); }
.card-icon.red   { background: #FDEAEA; color: var(--color-danger); }
.card-icon.blue  { background: #E8F0FA; color: #4A7FB5; }

.card-body { flex: 1; min-width: 0; }

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.card-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  opacity: 0.4;
}

/* ── Bottom Nav ───────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 900;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
  min-width: 60px;
}

.nav-btn svg { width: 22px; height: 22px; }

.nav-btn.active {
  color: var(--color-accent);
}

/* ── Tab Panels ───────────────────────────────────────── */
.tab-panel {
  display: none;
  animation: fadeIn 0.25s ease;
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Modals (slide-up) ────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-overlay);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-backdrop.open { opacity: 1; visibility: visible; }

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90vh;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1101;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: var(--safe-bottom);
}

.modal-sheet.open { transform: translateY(0); }

.modal-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.modal-handle span {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px 16px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}

.modal-close svg { width: 18px; height: 18px; }

.modal-body {
  padding: 0 20px 28px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* ── Modal content helpers ────────────────────────────── */
.info-block {
  margin-bottom: 20px;
}

.info-block-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-block-text {
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.info-address {
  background: var(--color-accent-light);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.info-address p {
  font-weight: 600;
  margin-bottom: 8px;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-maps:hover { background: #4A6B49; }

.wifi-box {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--color-border);
}

.wifi-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.wifi-value {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: monospace;
  margin-bottom: 16px;
  word-break: break-all;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-copy:hover { background: #4A6B49; }
.btn-copy.copied { background: var(--color-warm); }

.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  margin-top: 1px;
}

.equip-item, .info-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.equip-item:last-child, .info-item:last-child { border-bottom: none; }

.equip-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.equip-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ── Emergency / Contact links ────────────────────────── */
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  transition: background 0.2s;
}

.contact-link:active { background: var(--color-accent-light); }

.contact-link .link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-link .link-icon.danger { background: #FDEAEA; color: var(--color-danger); }
.contact-link .link-icon.green  { background: var(--color-accent-light); color: var(--color-accent); }
.contact-link .link-icon.blue   { background: #E8F0FA; color: #4A7FB5; }

.contact-link .link-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-link .link-number {
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.contact-link .link-action {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
}

/* ── Guestbook ────────────────────────────────────────── */
.guestbook-header {
  padding: 24px 20px 8px;
  text-align: center;
}

.guestbook-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.guestbook-header p {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.guestbook-feed {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gb-entry {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.gb-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gb-entry-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.gb-entry-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.gb-entry-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 10px;
}

.gb-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gb-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.gb-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-light);
  font-size: 0.92rem;
}

.gb-empty span { font-size: 2rem; display: block; margin-bottom: 12px; }

.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 16px);
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  z-index: 800;
  transition: transform 0.2s;
}

.fab:active { transform: scale(0.92); }
.fab svg { width: 24px; height: 24px; }
.fab.hidden { display: none; }

.gb-form {
  padding: 0 20px 20px;
}

.gb-form input,
.gb-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  margin-bottom: 10px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.gb-form input:focus,
.gb-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.gb-form textarea { min-height: 100px; resize: vertical; }

.gb-photo-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.gb-photo-upload label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: border-color 0.2s;
}

.gb-photo-upload label:hover { border-color: var(--color-accent); }

.gb-photo-preview {
  display: flex;
  gap: 8px;
}

.gb-photo-preview .thumb {
  position: relative;
  width: 56px;
  height: 56px;
}

.gb-photo-preview .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.gb-photo-preview .thumb .remove-photo {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--color-danger);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.btn-submit:hover { background: #4A6B49; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.gb-toast {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 80px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1200;
  white-space: nowrap;
}

.gb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Video Modal ──────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.video-modal.open { opacity: 1; visibility: visible; }

.video-modal video {
  max-width: 100%;
  max-height: 100%;
}

.video-modal .video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.video-modal .video-close svg { width: 22px; height: 22px; }

/* ── Sub-pages ────────────────────────────────────────── */
.subpage-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 8px;
}

.btn-back {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-back svg { width: 18px; height: 18px; }

.subpage-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.subpage-body {
  padding: 12px 16px 100px;
}

.place-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  margin-bottom: 10px;
}

.place-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.place-card-body { flex: 1; }

.place-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.place-card-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-bottom: 6px;
}

.place-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.place-card-meta a { font-weight: 600; }

/* ── Map ──────────────────────────────────────────────── */
.map-filters {
  display: flex;
  gap: 6px;
  padding: 8px 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.map-filters::-webkit-scrollbar { display: none; }

.filter-btn {
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 20px;
  white-space: nowrap;
  background: var(--color-bg);
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.map-container {
  width: 100%;
  height: calc(100vh - 220px);
  min-height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 16px;
  width: calc(100% - 32px);
}

/* ── Panne info ───────────────────────────────────────── */
.panne-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.panne-item:last-child { border-bottom: none; }

.panne-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.panne-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* ── Responsive (tablet+) ─────────────────────────────── */
@media (min-width: 640px) {
  .hero { height: 60vh; max-height: 600px; }
  .hero-title { font-size: 2.2rem; }
  .cards { max-width: 540px; margin: 0 auto; }
  .welcome-section { max-width: 540px; margin: 0 auto; }
  .guestbook-feed { max-width: 540px; margin: 0 auto; }
  .modal-sheet { max-width: 540px; left: 50%; transform: translateX(-50%) translateY(100%); }
  .modal-sheet.open { transform: translateX(-50%) translateY(0); }
  .bottom-nav { max-width: 540px; left: 50%; transform: translateX(-50%); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .section-header { max-width: 540px; margin: 0 auto; }
  .guestbook-header { max-width: 540px; margin: 0 auto; }
  .gb-form { max-width: 540px; margin: 0 auto; }
}
