/* CSS Variables for consistent theming */
:root {
  --brand: #ff3d00;
  --brand-light: #ff7a59;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #fff9f6;
  --white: #ffffff;
  --light-gray: #fafafa;
  --border-light: #eee;
  --accent-bg: #ffe4dc;
  --accent-border: rgba(255, 61, 0, .25);
  --tip-bg: #fad7c5;
  --tip-border: #ffc4b3;
  --tip-text: #511A09;

  /* Spacing */
  --container-max-width: 1040px;
  --container-padding: 20px;
  --section-gap: 1.5rem;
  --grid-gap: 15px;
  --grid-gap-large: 36px;

  /* Typography */
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;
  --hero-font-size: clamp(34px, 4vw, 34px);
  --h2-font-size: clamp(26px, 3.5vw, 26px);
  --h3-font-size: clamp(22px, 2.5vw, 20px);
  --base-font-size: 18px;
  --small-font-size: 16px;
  --tiny-font-size: 14px;

  /* Border radius */
  --radius-small: 8px;
  --radius-medium: 10px;
  --radius-large: 12px;
  --radius-full: 999px;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack), serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Hero Section */
header.hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: var(--white);
  padding: clamp(40px, 8vw, 56px) var(--container-padding) 40px;
}

.hero h1 {
  font-size: var(--hero-font-size);
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
}

.hero p {
  margin: 8px 0 0;
  opacity: 0.95;
  font-size: var(--base-font-size);
}

/* Tags */
.tag {
  display: inline-block;
  background: var(--accent-bg);
  color: #b52a00;
  border: 1px solid var(--accent-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--tiny-font-size);
  margin: 2px 6px 8px 0;
  font-weight: 500;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  align-items: start;
}

/* Section Styling */
section.block {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

section.group {
  margin: var(--section-gap) 0 0.5rem;
  padding: clamp(16px, 3vw, 24px);
  background: var(--bg);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-large);
}

section.block:last-of-type {
  border-bottom: 0;
}

/* Typography */
h2 {
  font-size: var(--h2-font-size);
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
}

h3 {
  font-size: var(--h3-font-size);
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  font-size: var(--base-font-size);
  color: var(--ink);
  margin: 12px 0;
  line-height: 1.7;
}

/* Image Wrapper */
.imgwrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 7 / 5;
  border-radius: var(--radius-large);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--light-gray);
  margin: 0 auto;
}

.buttonwrap {
  text-align: center;
}

.imgwrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #333;
  margin: 4px 8px 8px 0;
  font-weight: 500;
}

/* Call to Action */
header .cta {
  background: var(--accent-bg);
  color: #b52a00;
}

header .cta:hover {
  background: #efd4cc;
}

.cta {
  width: 100%;
  max-width: 350px;
  display: inline-block;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  padding: 12px 20px;
  border-radius: var(--radius-medium);
  margin-top: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.cta:hover {
  background: #e63600;
}

/* Tips and Reviews */
.tip, .review {
  background: var(--tip-bg);
  border: 1px dashed var(--tip-border);
  color: var(--tip-text);
  padding: 12px 16px;
  border-radius: var(--radius-medium);
  font-size: var(--small-font-size);
  margin: 12px 0;
}

.review-title {
  color: #280F07;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}

/* Lists */
ul {
  margin: 12px 0 0 20px;
  padding: 0;
}

li {
  margin: 6px 0;
  line-height: 1.6;
}

/* Split Layout */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Footer */
footer {
  background: var(--light-gray);
  border-top: 1px solid var(--border-light);
  padding: clamp(24px, 5vw, 32px) 0;
  margin-top: 32px;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
}

/* --- Navigation Bar Styles --- */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

.nav-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.navbar .logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--brand);
  text-decoration: none;
}

.navbar .logo img {
  height: 37px;
  padding-top: 10px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

.title-row {
  display: flex;
  align-items: baseline; /* 텍스트 라인 맞추기 */
  gap: 8px; /* 이름과 지역 사이 여백 */
}

.restaurant-name {
  font-size: 1.5rem; /* 기본 h3 크기 유지 */
  margin-bottom: 8px;
}

.location {
  /*font-size: 0.9rem;
  color: #666;       
  font-weight: normal;*/
  font-weight: normal;
  font-size: 0.85rem;
  padding: 4px 10px;
  background-color: #f0f2f5; /* 옅은 배경 */
  color: #555;
  border-radius: 999px; /* pill 모양 */
}

/* Responsive Design */

/* Tablet and up */
@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }

  .pill {
    margin: 2px;
  }
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .navbar .logo img {
    height: 35px;
    padding-top: 9px;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: 0.75fr 1.25fr;
    gap: var(--grid-gap-large);
    align-items: start;
  }

  .imgwrap {
    aspect-ratio: 1;
    max-width: 380px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* Mobile optimizations */
@media (max-width: 639px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 16px 32px;
  }

  section.group {
    padding: 16px;
    margin: 1rem 0 0.5rem;
  }

  .pill {
    font-size: 14px;
    padding: 4px 8px;
    margin: 2px;
  }

  .cta {
    padding: 10px 16px;
    font-size: 18px;
  }

  h3 {
    margin-bottom: 12px;
  }

  .lead {
    font-size: 18px;
    margin: 8px 0;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  section.group {
    padding: 12px;
  }
}