/* =============================================
   NKY Restaurants — Main Stylesheet
   ============================================= */

:root {
  --amber-dark:   #78350f;
  --amber:        #d97706;
  --amber-light:  #f59e0b;
  --amber-pale:   #fffbeb;
  --amber-border: #fde68a;
  --text:         #1c1917;
  --text-muted:   #78716c;
  --border:       #e7e5e4;
  --bg:           #ffffff;
  --bg-warm:      #fafaf9;
  --radius:       10px;
  --shadow:       0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.1);
}

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

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

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */
.site-header {
  background: var(--amber-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header .container { display: flex; align-items: center; gap: 2rem; height: 64px; }
.logo { display: flex; align-items: center; gap: .5rem; color: #fff; font-size: 1.2rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.logo-icon { font-size: 1.4rem; display: flex; align-items: center; }
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a { color: rgba(255,255,255,0.85); font-size: .9rem; font-weight: 500; transition: color .15s; text-decoration: none; }
.nav a:hover, .nav a.active { color: #fff; }
.nav-search { margin-left: auto; }
.nav-search form { display: flex; gap: .4rem; }
.nav-search input { padding: .35rem .75rem; border-radius: 6px; border: none; font-size: .85rem; background: rgba(255,255,255,.15); color: #fff; width: 180px; }
.nav-search input::placeholder { color: rgba(255,255,255,.6); }
.nav-search input:focus { outline: none; background: rgba(255,255,255,.25); }
.nav-search button { padding: .35rem .75rem; border-radius: 6px; border: none; background: var(--amber-light); color: var(--amber-dark); font-size: .85rem; font-weight: 600; cursor: pointer; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; margin-left: auto; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--amber-dark) 0%, #b45309 50%, var(--amber) 100%);
  color: #fff;
  padding: 4rem 1.25rem;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: .75rem; letter-spacing: -.02em; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 520px; margin: 0 auto 2rem; line-height: 1.65; }
.hero-search { display: flex; gap: .5rem; max-width: 480px; margin: 0 auto; }
.hero-search input { flex: 1; padding: .85rem 1.1rem; border-radius: var(--radius); border: none; font-size: 1rem; }
.hero-search button { padding: .85rem 1.5rem; border-radius: var(--radius); border: none; background: var(--amber-light); color: var(--amber-dark); font-weight: 700; font-size: 1rem; cursor: pointer; white-space: nowrap; }
.hero-stats { display: flex; gap: 2rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stat span { font-size: .82rem; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }

/* ---- Sections ---- */
.section { padding: 3rem 0; }
.section--warm { background: var(--bg-warm); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .5rem; }
.section-header h2 { font-size: 1.4rem; font-weight: 700; }
.section-header a { font-size: .88rem; color: var(--amber); }

/* ---- Restaurant Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.restaurant-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .15s, transform .15s; display: flex; flex-direction: column; }
.restaurant-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.card-cuisine { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--amber); background: var(--amber-pale); border: 1px solid var(--amber-border); border-radius: 4px; padding: .15rem .5rem; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.card-name { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; color: var(--text); }
.card-name a { color: inherit; text-decoration: none; }
.card-name a:hover { color: var(--amber); }
.card-meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .5rem; }
.card-rating { display: flex; align-items: center; gap: .35rem; font-size: .85rem; margin-top: auto; padding-top: .5rem; }
.stars { color: var(--amber-light); letter-spacing: -.05em; }
.rating-count { color: var(--text-muted); font-size: .8rem; }
.card-footer { padding: .75rem 1.1rem; border-top: 1px solid var(--border); background: var(--bg-warm); display: flex; gap: .75rem; }
.card-footer a { font-size: .82rem; color: var(--amber); font-weight: 500; text-decoration: none; }
.card-footer a:hover { text-decoration: underline; }
.badge-featured { background: var(--amber-light); color: var(--amber-dark); font-size: .72rem; font-weight: 700; padding: .1rem .45rem; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; margin-left: auto; }

/* ---- City Pills ---- */
.city-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.city-pill { background: var(--bg-warm); border: 1px solid var(--border); border-radius: 999px; padding: .5rem 1.1rem; font-size: .88rem; font-weight: 500; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: .4rem; transition: background .15s, border-color .15s; }
.city-pill:hover { background: var(--amber-pale); border-color: var(--amber-border); text-decoration: none; color: var(--amber-dark); }
.city-pill-count { font-size: .75rem; color: var(--text-muted); }

/* ---- Directory ---- */
.directory-bar { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: .3rem; }
.filter-group label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-group input, .filter-group select { padding: .55rem .85rem; border: 1px solid var(--border); border-radius: 7px; font-size: .9rem; background: #fff; color: var(--text); font-family: inherit; }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--amber); }
.filter-group input { min-width: 200px; }
.filter-submit { padding: .55rem 1.25rem; background: var(--amber); color: #fff; border: none; border-radius: 7px; font-weight: 600; font-size: .9rem; cursor: pointer; align-self: flex-end; }
.filter-submit:hover { background: var(--amber-dark); }
.filter-clear { font-size: .82rem; color: var(--text-muted); align-self: flex-end; padding-bottom: .1rem; }
.directory-count { font-size: .9rem; color: var(--text-muted); margin-bottom: 1rem; }
.directory-count strong { color: var(--text); }

/* ---- Restaurant Detail ---- */
.restaurant-detail { max-width: 900px; margin: 0 auto; padding: 2rem 1.25rem; }
.detail-header { margin-bottom: 2rem; }
.detail-back { font-size: .85rem; color: var(--text-muted); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.detail-back:hover { color: var(--amber); text-decoration: none; }
.detail-cuisine { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--amber); background: var(--amber-pale); border: 1px solid var(--amber-border); border-radius: 4px; padding: .2rem .6rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .6rem; }
.detail-name { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.detail-rating { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.detail-rating .stars { font-size: 1.1rem; }
.detail-rating .rating-val { font-size: 1rem; font-weight: 700; }
.detail-rating .review-count { font-size: .85rem; color: var(--text-muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.detail-main { min-width: 0; }
.detail-sidebar {}
.detail-section { margin-bottom: 2rem; }
.detail-section h2 { font-size: 1.05rem; font-weight: 700; border-bottom: 1px solid var(--border); padding-bottom: .5rem; margin-bottom: 1rem; }
.detail-section p { color: var(--text-muted); line-height: 1.75; }
.detail-card { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.detail-card + .detail-card { margin-top: 1rem; }
.detail-info-row { display: flex; gap: .75rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.detail-info-row:last-child { border-bottom: none; }
.detail-info-label { font-weight: 600; color: var(--text-muted); min-width: 70px; }
.detail-info-val a { color: var(--amber); }
.hours-table { width: 100%; font-size: .88rem; border-collapse: collapse; }
.hours-table tr:nth-child(even) td { background: var(--bg-warm); }
.hours-table td { padding: .3rem .5rem; }
.hours-table td:first-child { font-weight: 600; text-transform: capitalize; color: var(--text-muted); width: 40%; }
.hours-today td { color: var(--amber-dark); font-weight: 600; }

/* ---- Reviews ---- */
.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review { background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.review-header { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.review-author { font-weight: 600; font-size: .9rem; }
.review-time { font-size: .8rem; color: var(--text-muted); margin-left: auto; }
.review-text { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ---- Nearby ---- */
.nearby-list { display: flex; flex-direction: column; gap: .75rem; }
.nearby-item { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; transition: background .15s; }
.nearby-item:hover { background: var(--amber-pale); text-decoration: none; }
.nearby-info { flex: 1; min-width: 0; }
.nearby-name { font-size: .9rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-meta { font-size: .78rem; color: var(--text-muted); }

/* ---- City Pages ---- */
.city-hero { background: linear-gradient(135deg, var(--amber-dark), var(--amber)); color: #fff; padding: 3rem 1.25rem; }
.city-hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .5rem; }
.city-hero p { opacity: .9; max-width: 560px; line-height: 1.65; }
.city-content { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.25rem; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 7px; font-size: .88rem; font-weight: 500; border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.pagination a:hover { background: var(--amber-pale); border-color: var(--amber-border); text-decoration: none; }
.pagination .active { background: var(--amber); border-color: var(--amber); color: #fff; }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: .75rem 1.75rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; text-decoration: none; transition: opacity .15s; }
.btn--primary { background: var(--amber); color: #fff; }
.btn--primary:hover { opacity: .88; text-decoration: none; }
.btn--outline { border: 1px solid var(--border); background: #fff; color: var(--text); }
.btn--outline:hover { background: var(--bg-warm); text-decoration: none; }
.btn--sm { padding: .45rem 1rem; font-size: .85rem; }

/* ---- Forms ---- */
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea { padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: .95rem; font-family: inherit; color: var(--text); background: #fff; transition: border-color .15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--amber); }
.form-group textarea { resize: vertical; min-height: 120px; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .9rem; }
.alert--success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert--error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ---- Prose ---- */
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .6rem; }
.prose p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; font-size: .95rem; }
.prose a  { color: var(--amber); }
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 1rem 1.5rem; font-size: .95rem; line-height: 1.8; }
.prose li { margin-bottom: .3rem; }
.prose strong { color: var(--text); }

/* ---- Empty State ---- */
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state h2 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--text); }
.empty-state p  { margin-bottom: 1.5rem; }

/* ---- Footer ---- */
.site-footer { background: var(--amber-dark); color: rgba(255,255,255,0.85); margin-top: auto; }
.site-footer .container { padding-top: 2.5rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.footer-col h4 { font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-col p  { font-size: .85rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a  { color: rgba(255,255,255,.75); font-size: .85rem; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-bottom a { color: rgba(255,255,255,.65); }

/* ---- Page Hero (blog index etc) ---- */
.page-hero { background: linear-gradient(135deg, var(--amber-dark) 0%, #b45309 100%); color: #fff; padding: 3rem 1.25rem; text-align: center; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; letter-spacing: -.02em; }
.page-hero .hero-sub { opacity: .9; max-width: 560px; margin: 0 auto; line-height: 1.65; font-size: 1.05rem; }

/* ---- Blog Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.blog-grid--compact { margin-top: 1rem; }

.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: box-shadow .2s, transform .15s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.blog-tag {
  background: var(--amber-pale);
  color: var(--amber-dark);
  border: 1px solid var(--amber-border);
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.blog-card-title { font-size: 1.1rem; font-weight: 700; margin: 0; line-height: 1.4; }
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--amber); }
.blog-card--compact .blog-card-title { font-size: 1rem; }

.blog-card-excerpt { font-size: .9rem; color: var(--text-muted); line-height: 1.65; margin: 0; flex: 1; }

.blog-read-more { font-size: .88rem; font-weight: 600; color: var(--amber); text-decoration: none; margin-top: auto; }
.blog-read-more:hover { text-decoration: underline; }

/* ---- Blog Post ---- */
.breadcrumb { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--amber); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

.blog-post { }

.blog-post-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.blog-post-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; margin: .5rem 0 1rem; letter-spacing: -.02em; }
.blog-post-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.blog-post-meta { font-size: .88rem; color: var(--text-muted); margin: 0; }
.blog-post-meta strong { color: var(--text); }

.blog-post-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}
.blog-post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 .75rem;
  color: var(--text);
  letter-spacing: -.01em;
}
.blog-post-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 .5rem;
  color: var(--text);
}
.blog-post-body p { margin: 0 0 1.25rem; }
.blog-post-body ul, .blog-post-body ol { margin: 0 0 1.25rem 1.75rem; }
.blog-post-body li { margin-bottom: .5rem; line-height: 1.75; }
.blog-post-body a { color: var(--amber); }
.blog-post-body a:hover { text-decoration: underline; }
.blog-post-body strong { color: var(--text); font-weight: 600; }
.blog-post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.blog-post-body th, .blog-post-body td { padding: .65rem .85rem; border: 1px solid var(--border); }
.blog-post-body th { background: var(--bg-warm); font-weight: 600; text-align: left; }

.blog-post-cta {
  margin: 2.5rem 0;
  padding: 1.75rem 2rem;
  background: var(--amber-pale);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.blog-post-cta p { margin: 0; font-weight: 600; font-size: 1.05rem; }

.blog-recent { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.blog-recent h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.blog-recent .blog-grid { grid-template-columns: repeat(2, 1fr); }

/* ---- Cookie Banner ---- */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--amber-dark); color: #fff; z-index: 1000; border-top: 2px solid var(--amber); }
.cookie-banner-inner { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cookie-banner-inner p { font-size: .85rem; flex: 1; }
.cookie-banner-inner a { color: var(--amber-light); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .detail-grid  { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header .container { gap: 1rem; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--amber-dark); padding: 1rem 1.25rem; gap: .75rem; z-index: 99; }
  .nav-toggle { display: block; }
  .nav-search { display: none; }
  .hero { padding: 2.5rem 1rem; }
  .hero-search { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .directory-bar { flex-direction: column; }
  .filter-group input { min-width: 0; width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-recent .blog-grid { grid-template-columns: 1fr; }
  .blog-post-cta { flex-direction: column; align-items: flex-start; }
  .blog-post-header h1 { font-size: 1.5rem; }
}
