:root {
  --muk-ink: #121212;
  --muk-muted: #5b6672;
  --muk-accent: #ff6b3d;
  --muk-accent-strong: #ff4a18;
  --muk-sand: #f7f2eb;
  --muk-cream: #fffaf4;
  --muk-forest: #0b3b2e;
  --muk-card: #ffffff;
  --muk-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.muktrip-home {
  font-family: "Poppins", "Noto Sans KR", "Noto Sans JP", sans-serif;
  color: var(--muk-ink);
  background: var(--muk-cream);
}

body.home #content,
body.home .site-content,
body.home #primary,
body.home main.muktrip-home {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

body.home .muktrip-home .grid-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

.muktrip-home .home-section {
  padding: 64px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.home-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 14, 12, 0.7), rgba(15, 14, 12, 0.25));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 120px 24px 100px;
}

.hero-copy {
  max-width: 520px;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 3.6vw, 4rem);
  margin: 0 0 16px;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--muk-shadow);
}

.hero-search input {
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muk-ink);
}

.hero-search input:focus {
  outline: 2px solid rgba(255, 107, 61, 0.35);
  outline-offset: 2px;
  border-color: var(--muk-accent);
}

.hero-search button {
  border: none;
  background: var(--muk-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--muk-accent-strong);
}

.home-quick {
  background: var(--muk-sand);
}

.quick-block {
  margin-bottom: 18px;
}

.quick-block h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #eadfd5;
  color: var(--muk-ink);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
}

.chip:hover {
  border-color: var(--muk-accent);
  color: var(--muk-accent-strong);
}

.home-recent,
.home-categories,
.home-map-cta {
  padding: 0;
}

.section-head h2 {
  font-size: 24px;
  margin: 0 0 24px;
  text-align: left;
}

.section-subtitle {
  margin: -12px 0 24px;
  color: var(--muk-muted);
  font-size: 14px;
}

.map-subtitle {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.home-section + .home-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

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

.place-card {
  background: var(--muk-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.card-media {
  margin: 12px 18px 0;
  border-radius: 12px;
  overflow: hidden;
}

.card-media img,
.media-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
  background: #d9d9d9;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muk-muted);
  margin-bottom: 6px;
}

.card-meta .tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.card-meta .tag.is-muted {
  color: var(--muk-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* place-style card on home */
.place-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px 18px;
  flex: 1 1 auto;
}

.place-type {
  font-size: 12px;
  font-weight: 800;
  color: #555;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fafafa;
  width: fit-content;
}

.place-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
}

.place-title-link {
  text-decoration: none;
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-title-type {
  font-size: 12px;
  font-weight: 800;
  color: #555;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fafafa;
}

.place-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #777;
  font-weight: 700;
  flex-wrap: wrap;
}

.place-address {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-parking {
  font-size: 13px;
  color: #333;
  font-weight: 800;
}

.place-short-review {
  font-size: 13px;
  color: #444;
  line-height: 1.45;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f7f7f7;
  border: 1px solid #eee;
}

.place-short-review-label {
  font-size: 12px;
  font-weight: 800;
  color: #666;
  margin-bottom: 4px;
}

.place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.place-tags .tag {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  color: #555;
}

.place-excerpt {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

.place-ratings {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
}

.rating-row {
  display: grid;
  grid-template-columns: 96px 1fr 40px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.rating-label {
  color: #555;
  font-weight: 800;
}

.rating-stars {
  letter-spacing: 1px;
  display: inline-flex;
  gap: 2px;
}

.rating-stars .star {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1;
}

.rating-stars .star.is-filled {
  color: #f59e0b;
}

.rating-stars.is-penalty .star.is-filled {
  color: #d93025;
}

.rating-score {
  text-align: right;
  color: #666;
  font-weight: 800;
}

.rating-bool {
  grid-column: 2 / span 2;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
}

.rating-bool.is-no {
  color: #777;
  font-weight: 700;
}

.rating-reason {
  grid-column: 1 / -1;
  background: #fff5f5;
  border: 1px solid rgba(217,48,37,.25);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.rating-reason .label {
  font-weight: 900;
  margin-bottom: 4px;
  color: #d93025;
}

.place-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: auto;
}

.place-total .label {
  font-weight: 800;
  color: #666;
}

.place-total .score {
  font-size: 20px;
  font-weight: 950;
  color: #111;
  letter-spacing: -0.3px;
}

.place-total .unit {
  font-weight: 800;
  color: #777;
}

.place-total .score.score-low { color: #d93025; }
.place-total .score.score-mid { color: #f29900; }
.place-total .score.score-high { color: #188038; }
.place-total .score.score-top { color: #0f9d58; }

.place-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  width: 50%;
  justify-content: center;
  flex: 0 0 50%;
}

.score-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 50%;
  justify-content: flex-end;
  flex: 0 0 50%;
}

.recent-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 0;
}

.recent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.recent-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muk-muted);
}

.recent-author {
  font-weight: 800;
  color: var(--muk-ink);
}

.recent-date {
  color: var(--muk-muted);
}

.recent-score {
  font-size: 12px;
  font-weight: 800;
  color: #ff6b3d;
  background: rgba(255, 107, 61, 0.12);
  border: 1px solid rgba(255, 107, 61, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
}

.recent-review {
  color: #444;
}

.recent-penalty {
  margin: 0;
  font-size: 12px;
  color: #8a1c1c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 6px 10px;
}

.recent-stars {
  font-size: 14px;
  letter-spacing: 2px;
  color: #ff6b3d;
  background: none;
  border: none;
}

.recent-score.score-low {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.08);
}

.recent-score.score-mid {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.recent-score.score-high {
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.08);
}

.recent-score.score-top {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.08);
}

.recent-stars.score-low { color: #dc2626; }
.recent-stars.score-mid { color: #f59e0b; }
.recent-stars.score-high { color: #16a34a; }
.recent-stars.score-top { color: #0f766e; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: var(--muk-ink);
  border: 1px solid #efe4d8;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  border-color: var(--muk-accent);
  transform: translateY(-2px);
}

.category-card .count {
  font-weight: 700;
  color: var(--muk-accent);
}

.home-map-cta .map-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--muk-forest);
  color: #fff;
  padding: 32px;
  border-radius: 18px;
}

.home-map-cta .map-copy p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.map-link {
  background: #fff;
  color: var(--muk-forest);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.home-footer {
  background: #101010;
  color: #fff;
  padding: 48px 0 64px;
}

.footer-cta {
  font-size: 18px;
  margin-bottom: 24px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.footer-col h3 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: #dcdcdc;
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 13px;
}

.footer-langs {
  display: flex;
  gap: 12px;
  font-size: 12px;
}

.footer-langs a {
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
}

.footer-langs a.is-current {
  opacity: 1;
  text-decoration: underline;
}

.empty-state {
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

@media (max-width: 960px) {
  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-map-cta .map-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding: 88px 20px 72px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .muktrip-home .home-section {
    padding: 48px 0;
  }

  .quick-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .quick-chips .chip {
    white-space: nowrap;
  }

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

  .home-map-cta .map-card {
    padding: 24px;
  }
}
