@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Spectral:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap");

:root {
  --bg: #f5f6f5;
  --fg: #101828;
  --muted: #667085;
  --accent: #344054;
  --card: #ffffff;
  --border: rgba(16, 24, 40, 0.14);
  --soft: rgba(16, 24, 40, 0.06);
  --warm: #9a7b5f;
  --deep: #17212c;
  --sage: #6d8071;
  --warm-light: #ddd1c0;
  --cream: #fbfbfa;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 20%, rgba(109, 128, 113, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 90% 10%, rgba(154, 123, 95, 0.04) 0%, transparent 45%);
}

/* ── Container ── */

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

/* ── Header ── */

.site-header {
  padding: 24px 0;
  position: relative;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}

.site-header--transparent .brand-title,
.site-header--transparent .nav a {
  color: #fff;
}

.site-header--transparent .brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.site-header--transparent .brand-mark {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.site-header--transparent .nav a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--deep);
  color: var(--warm-light);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.05);
}

.brand-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.nav a {
  text-decoration: none;
  color: var(--fg);
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  border-bottom-color: var(--warm);
}

/* ── Typography ── */

h1, h2, h3 {
  font-family: "Spectral", serif;
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 22px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

/* ── Full-width Hero ── */

.hero-full {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
  background: var(--deep);
}

.hero-full__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 40%;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.1) 0%,
    rgba(44, 24, 16, 0.3) 40%,
    rgba(44, 24, 16, 0.7) 75%,
    rgba(44, 24, 16, 0.85) 100%
  );
}

.hero-full__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 680px;
}

.hero-full__content .eyebrow {
  color: var(--warm-light);
}

.hero-full__content h1 {
  color: #fff;
  font-size: 56px;
  margin-bottom: 16px;
}

.hero-full__content .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}

.hero-full__content .hero-actions {
  margin-top: 28px;
}

.hero-full__content .btn {
  background: var(--warm);
  color: var(--deep);
  font-weight: 500;
}

.hero-full__content .btn.ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.hero-full__content .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-full__stat {
  position: absolute;
  bottom: 80px;
  right: 32px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 32px;
  color: #fff;
}

.hero-full__stat .metric-value {
  font-size: 52px;
  font-family: "Spectral", serif;
  color: var(--warm-light);
}

.hero-full__stat .metric-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ── City Filter Pills ── */

.city-filters {
  padding: 28px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.city-filters__inner {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.city-filters__inner::-webkit-scrollbar {
  display: none;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
}

.city-pill:hover {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
  transform: translateY(-1px);
}

.city-pill--all {
  background: var(--deep);
  color: var(--warm-light);
  border-color: var(--deep);
}

/* ── Value Proposition Section ── */

.value-section {
  padding: 80px 0;
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.value-section__header h2 {
  font-size: 36px;
  margin-bottom: 8px;
}

.value-section__header p {
  color: var(--muted);
  font-size: 16px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(44, 24, 16, 0.08);
}

.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.value-card__icon--craft {
  background: rgba(196, 168, 130, 0.15);
  color: var(--warm);
}

.value-card__icon--seasons {
  background: rgba(139, 154, 126, 0.15);
  color: var(--sage);
}

.value-card__icon--quiet {
  background: rgba(44, 24, 16, 0.08);
  color: var(--deep);
}

.value-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Section ── */

.section {
  padding: 84px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--warm);
}

.section-header p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
}

/* ── Cards Grid ── */

.grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Image Card ── */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 42px rgba(16, 24, 40, 0.08);
}

.card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card__image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(196, 168, 130, 0.2) 0%, rgba(139, 154, 126, 0.2) 100%);
  position: relative;
}

.card__image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(196, 168, 130, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(139, 154, 126, 0.1) 0%, transparent 60%);
}

.card__body {
  padding: 24px 24px 28px;
}

.card__eyebrow {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-bottom: 8px;
}

.card__body h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.card__body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Old flat card style (kept for compat) */
.card-eyebrow {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--deep);
  color: var(--warm-light);
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(44, 24, 16, 0.15);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  border-color: var(--warm);
  color: var(--deep);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

/* ── Place Detail Hero ── */

.place-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 60px;
  overflow: hidden;
  background: var(--deep);
}

.place-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.place-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.15) 0%,
    rgba(44, 24, 16, 0.6) 60%,
    rgba(44, 24, 16, 0.85) 100%
  );
}

.place-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.place-hero__content .eyebrow {
  color: var(--warm-light);
}

.place-hero__content h1 {
  color: #fff;
  font-size: 48px;
}

.place-hero__content .lead {
  color: rgba(255, 255, 255, 0.8);
}

.place-hero__content .meta {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.place-hero__content .btn {
  background: var(--warm);
  color: var(--deep);
}

/* ── Breadcrumb ── */

.breadcrumb {
  padding: 20px 0;
  font-size: 13px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--deep);
}

.breadcrumb span {
  color: var(--border);
  margin: 0 8px;
}

/* ── Two-column Place Layout ── */

.place-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.place-main h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.place-main h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--warm);
  margin-top: 8px;
}

.place-main p {
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
}

/* ── Highlights Checklist ── */

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.highlights-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--soft);
  font-size: 15px;
  color: var(--fg);
}

.highlights-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(139, 154, 126, 0.15);
  border: 1.5px solid var(--sage);
}

.highlights-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 9px;
  border-right: 1.5px solid var(--sage);
  border-bottom: 1.5px solid var(--sage);
}

/* ── Sidebar ── */

.place-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.sidebar-card h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

.sidebar-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item:last-child {
  border-bottom: none;
}

.sidebar-item__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 500;
}

.sidebar-item__value {
  font-size: 15px;
  color: var(--fg);
}

.sidebar-item__value a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--warm);
  text-underline-offset: 3px;
}

.sidebar-item__value a:hover {
  color: var(--warm);
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* ── Tags ── */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--cream);
  transition: border-color 0.2s ease;
}

.tag:hover {
  border-color: var(--warm);
}

/* ── City Page ── */

.city-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 60px;
  overflow: hidden;
  background: var(--deep);
}

.city-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.city-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.1) 0%,
    rgba(44, 24, 16, 0.5) 60%,
    rgba(44, 24, 16, 0.85) 100%
  );
}

.city-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
}

.city-hero__content .eyebrow {
  color: var(--warm-light);
}

.city-hero__content h1 {
  color: #fff;
  font-size: 52px;
}

.city-hero__content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.6;
}

/* ── Type Tabs (City Page) ── */

.type-tabs {
  display: flex;
  gap: 8px;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.type-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-tab:hover,
.type-tab.active {
  color: var(--deep);
  background: var(--cream);
  border-color: var(--border);
}

.type-tab.active {
  background: var(--deep);
  color: var(--warm-light);
  border-color: var(--deep);
}

.type-section {
  display: none;
}

.type-section.active {
  display: block;
}

/* ── Collaboration ── */

.collaboration {
  background: linear-gradient(135deg, #edeae5 0%, #e8e4dd 100%);
  border-top: 1px solid var(--border);
}

.collaboration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.collaboration-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.06);
}

/* ── 404 Page ── */

.not-found {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(196, 168, 130, 0.08) 0%, transparent 60%),
    var(--bg);
}

.not-found .container {
  max-width: 560px;
}

.not-found__code {
  font-family: "Spectral", serif;
  font-size: 120px;
  font-weight: 300;
  color: var(--warm);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.6;
}

.not-found h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.not-found .lead {
  margin: 0 auto 24px;
  text-align: center;
}

.not-found__jp {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
  font-style: italic;
}

/* ── Footer ── */

.site-footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--warm);
  text-underline-offset: 3px;
}

/* ── Filters / Pagination / Empty state ── */

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  color: var(--fg);
  font: inherit;
}

.results-meta {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  margin-top: 26px;
  display: flex;
  gap: 10px;
}

.empty-state {
  margin-top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--warm);
}

.meta {
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── Lazy-load image fade ── */

img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .place-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .place-sidebar {
    position: static;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-full__stat {
    position: static;
    margin-top: 24px;
    display: inline-block;
  }

  .hero-full {
    min-height: 70vh;
    align-items: center;
    padding: 120px 0 60px;
  }

  .hero-full__content h1 {
    font-size: 40px;
  }
}

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 34px;
  }

  .hero-full__content h1 {
    font-size: 34px;
  }

  .place-hero__content h1 {
    font-size: 34px;
  }

  .city-hero__content h1 {
    font-size: 36px;
  }

  .container {
    padding: 0 20px;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero-full {
    min-height: 65vh;
    padding: 100px 0 48px;
  }

  .place-hero {
    min-height: 40vh;
    padding-bottom: 40px;
  }

  .city-hero {
    min-height: 45vh;
    padding-bottom: 40px;
  }

  .value-section {
    padding: 48px 0;
  }

  .not-found__code {
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero-full__stat {
    display: none;
  }
}
