:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --accent: #92400e;
  --accent-hover: #78350f;
  --accent-light: #fef3c7;
  --border: #e5e7eb;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.13);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  background: var(--accent);
  color: white;
  padding: 44px 0 36px;
  margin-bottom: 48px;
}

.site-header--detail {
  padding: 18px 0;
  margin-bottom: 36px;
}

.site-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 6px;
  font-size: 0.95rem;
}

.back-link {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.back-link:hover { color: white; }

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ── Visit grid ── */
.visits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 64px;
}

/* ── Visit card ── */
.visit-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.visit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.visit-card.hidden { display: none; }

.visit-card__img-link { display: block; overflow: hidden; }
.visit-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.visit-card__img-link:hover .visit-card__img { transform: scale(1.03); }

.visit-card__img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #f3e8d0 0%, #e8d5b7 100%);
}

.visit-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.visit-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.visit-card__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.visit-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}
.visit-card__title a:hover { color: var(--accent); }

.visit-card__rating {
  font-size: 1rem;
  letter-spacing: 1px;
  color: #d97706;
  margin-bottom: 10px;
}

.visit-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Badge ── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.badge--yes { background: var(--green-bg); color: var(--green); }
.badge--no  { background: var(--red-bg);   color: var(--red); }

/* ── Detail page ── */
.visit-detail {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 72px;
}

.visit-detail__cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.visit-detail__header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.visit-detail__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.visit-detail__meta time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  transition: background 0.15s;
}
.maps-link:hover { background: #fde68a; }

/* ── Photo gallery ── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 36px;
}
.photo-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
.photo-gallery img:hover { opacity: 0.92; }

/* ── Review content ── */
.visit-detail__content {
  font-size: 1rem;
  line-height: 1.8;
  color: #2d2d2d;
}
.visit-detail__content h2 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 12px; }
.visit-detail__content h3 { font-size: 1.05rem; font-weight: 600; margin: 20px 0 8px; }
.visit-detail__content p { margin-bottom: 16px; }
.visit-detail__content ul,
.visit-detail__content ol { margin: 0 0 16px 20px; }
.visit-detail__content li { margin-bottom: 6px; }
.visit-detail__content strong { font-weight: 600; }
.visit-detail__content em { font-style: italic; }

/* ── Empty state ── */
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 80px 24px;
  font-size: 0.95rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .site-header { padding: 28px 0 22px; margin-bottom: 28px; }
  .site-title { font-size: 1.5rem; }
  .visits-grid { grid-template-columns: 1fr; gap: 16px; }
  .visit-detail__header h1 { font-size: 1.5rem; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .filter-bar { gap: 8px; }
  .filter-btn { font-size: 0.8rem; padding: 6px 12px; }
}
