/* Taos Eats: system fonts only, no external font/CDN requests. Mobile-first. */

:root {
  --adobe: #b5623a;
  --adobe-dark: #93492a;
  --sand: #efe5d1;
  --sand-deep: #e2d3b3;
  --sage: #7c8a6e;
  --sky: #4d6f7a;
  --sun: #e3a857;
  --mountain-far: #cdbb9c;
  --mountain-near: #a98a63;
  --ink: #2b241c;
  --ink-soft: #5a5142;
  --muted: #8a8171;
  --paper: #fbf8f2;
  --line: #e3d8c1;
  --radius: 12px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  /* Subtle adobe-stucco texture: pure CSS, no image request. */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(181, 98, 58, 0.035) 0, transparent 45%),
    radial-gradient(circle at 85% 8%, rgba(124, 138, 110, 0.05) 0, transparent 40%),
    radial-gradient(circle at 60% 90%, rgba(181, 98, 58, 0.03) 0, transparent 50%);
  background-attachment: fixed;
}

a { color: var(--adobe-dark); text-decoration: none; transition: opacity 0.15s var(--ease); }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header {
  padding: 1rem 1.25rem;
  background: rgba(251, 248, 242, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.site-title:hover { text-decoration: none; opacity: 0.85; }

.site-mark {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--adobe);
  flex-shrink: 0;
}

.site-nav a {
  margin-left: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  transition: color 0.15s var(--ease);
}
.site-nav a:hover { color: var(--adobe-dark); text-decoration: none; }

/* ---------- Layout ---------- */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 2.75rem 0 1.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 90px;
  opacity: 0.55;
  z-index: 0;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 65%;
  opacity: 0.16;
  z-index: 0;
}

.hero .eyebrow, .hero h1, .hero-sub { position: relative; z-index: 1; }

.hero-small { padding: 1.75rem 0 1.25rem; text-align: left; }
.hero-small h1 { font-size: 1.8rem; margin: 0.4rem 0 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.hero-sub {
  max-width: 42em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

/* Pueblo-step chevron divider: pure CSS, no image. */
.chevron-divider {
  height: 14px;
  margin: 0 auto;
  max-width: 900px;
  background-image:
    linear-gradient(45deg, var(--sand-deep) 25%, transparent 25%),
    linear-gradient(-45deg, var(--sand-deep) 25%, transparent 25%);
  background-size: 20px 20px;
  background-position: center;
  opacity: 0.6;
}

/* ---------- Filters ---------- */

.filters {
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease);
}

.filters summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  list-style: none;
}
.filters summary::-webkit-details-marker { display: none; }
.filters summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--adobe);
  transition: transform 0.15s ease;
}
.filters[open] summary::before { transform: rotate(90deg); }

.filters-inner {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.filter-label {
  display: block;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.filter-links a {
  display: inline-block;
  font-size: 0.8rem;
  background: var(--sand);
  color: var(--ink);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin: 0 0.35rem 0.35rem 0;
  font-weight: 600;
}
.filter-links a:hover { background: var(--sand-deep); text-decoration: none; }

/* ---------- Eatery grid / cards ---------- */

.eatery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.eatery-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.eatery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(43, 36, 28, 0.09);
  border-color: transparent;
}

.eatery-card a { display: flex; flex-direction: column; color: inherit; }
.eatery-card a:hover { text-decoration: none; }
.eatery-card h2 { margin: 0.1rem 0 0.35rem; font-size: 1.2rem; color: var(--adobe-dark); }

.card-header {
  text-align: center;
  padding: 1.1rem 1.2rem 0.9rem;
}
.card-eyebrow { margin: 0 0 0.4rem; }

.card-media { flex: none; width: 100%; height: 9.5rem; }

.card-icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.card-icon-tile .card-icon { width: 2.1rem; height: 2.1rem; }
.card-icon-tile.tone-adobe { background: var(--adobe); }
.card-icon-tile.tone-adobe-dark { background: var(--adobe-dark); }
.card-icon-tile.tone-sage { background: var(--sage); }
.card-icon-tile.tone-sky { background: var(--sky); }

.card-photo {
  background-size: cover;
  background-position: center;
}

.card-body { padding: 0.9rem 1.2rem 1.1rem; min-width: 0; flex: 1; }

.rating { margin: 0; display: flex; justify-content: center; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; }
.card-price { color: var(--muted); font-size: 0.86rem; }
.star-row { display: inline-flex; gap: 0.1rem; align-items: center; }
.star-icon { width: 0.95rem; height: 0.95rem; }
.star-icon.filled { color: var(--adobe); }
.star-icon.empty { color: var(--line); }
.eatery-header .star-row .star-icon { width: 1.15rem; height: 1.15rem; }
.rating-pending {
  color: var(--sky);
  letter-spacing: normal;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eatery-card-meta, .review-meta {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 0.45rem;
}

.excerpt { margin: 0.3rem 0 0; color: var(--ink-soft); text-align: left; }

/* ---------- Stats page ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  text-align: center;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--adobe-dark);
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bar-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0 0 1.5rem; }
.bar-row { display: grid; grid-template-columns: 6.5rem 1fr 2rem; align-items: center; gap: 0.6rem; }
.bar-row-label { font-size: 0.86rem; color: var(--ink-soft); }
.bar-track {
  background: var(--sand);
  border-radius: 999px;
  height: 0.6rem;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--adobe);
  border-radius: 999px;
  transition: width 0.3s var(--ease);
}
.bar-fill-sage { background: var(--sage); }
.bar-fill-sky { background: var(--sky); }
.bar-row-count { font-size: 0.82rem; color: var(--muted); text-align: right; }

.fun-stats {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}
.fun-stats li { margin-bottom: 0.4rem; }

.start-here-heading {
  font-size: 1.3rem;
  color: var(--adobe-dark);
  margin: 2rem 0 1rem;
}

/* ---------- Search bar ---------- */

.search-bar {
  position: relative;
  margin: 0 0 0.9rem;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
}
#eatery-search {
  width: 100%;
  padding: 0.7rem 3.2rem 0.7rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
#eatery-search:focus {
  outline: none;
  border-color: var(--adobe);
  box-shadow: 0 0 0 3px rgba(181, 98, 58, 0.12);
}
#eatery-search::-webkit-search-cancel-button { cursor: pointer; }
.search-count {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: var(--muted);
  pointer-events: none;
}

/* ---------- Sort bar ---------- */

.sort-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
}
.sort-label {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.sort-options { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sort-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.sort-btn:hover { background: var(--sand); }
.sort-btn:active { transform: scale(0.96); }
.sort-btn.active {
  background: var(--adobe);
  border-color: var(--adobe);
  color: white;
}

/* ---------- Save / favorites ---------- */

.save-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(251, 248, 242, 0.9);
  border: 1px solid var(--line);
  color: var(--adobe-dark);
  border-radius: 999px;
  padding: 0.35rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.save-btn:hover { background: white; }
.save-btn:active { transform: scale(0.94); }
.save-btn .save-icon { width: 1.05rem; height: 1.05rem; display: block; }
.save-btn .save-label { display: none; }
.save-btn[aria-pressed="true"] .save-icon { color: var(--adobe); }

.eatery-card { position: relative; }

.save-btn-lg {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.45rem 0.7rem;
}
.save-btn-lg .save-label { display: inline; font-size: 0.82rem; font-weight: 700; }

.badge-recent {
  display: inline-block;
  background: var(--sage);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.verified-line { color: var(--muted); font-size: 0.8rem; margin: 0.35rem 0 0; }

.inline-icon { width: 0.95rem; height: 0.95rem; vertical-align: -0.15em; color: var(--sky); }

.amenity-row { margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.amenity-pill {
  display: inline-block;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.76rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.amenity-pill-diet { background: var(--sand); border-color: var(--sand-deep); text-transform: capitalize; }

/* ---------- Single eatery page ---------- */

.eatery-header { text-align: center; position: relative; }
.card-icon-tile-lg {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  margin: 0 auto 1rem;
  flex: none;
}
.card-icon-tile-lg .card-icon { width: 2.2rem; height: 2.2rem; }

.eatery-header h1 { font-size: 1.9rem; margin: 0.15rem 0 0.4rem; }
.not-yet-reviewed {
  display: inline-block;
  background: var(--sky);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.review-date { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.25rem; }

.contact-block {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
}
.contact-line { margin: 0 0 0.35rem; font-size: 0.95rem; }
.contact-links { margin: 0.7rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn {
  display: inline-block;
  background: var(--adobe);
  color: white;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}
.btn:hover { background: var(--adobe-dark); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-outline {
  background: transparent;
  color: var(--adobe-dark);
  border: 1.5px solid var(--adobe);
}
.btn-outline:hover { background: var(--adobe); color: white; }

.review-photos {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}
.review-photos img {
  width: 100%;
  max-width: 340px;
  border-radius: 8px;
  object-fit: cover;
}

.review-body { margin-top: 1.25rem; }
.review-body p { margin: 0 0 1rem; }
.review-body h2 { font-size: 1.25rem; margin: 1.75rem 0 0.6rem; color: var(--adobe-dark); }

.review-tags { margin-top: 1.5rem; }
.tag {
  display: inline-block;
  background: var(--sage);
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  margin: 0 0.4rem 0.4rem 0;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- About page ---------- */

main > p { max-width: 42em; }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  body { font-size: 17px; }
  .site-header { padding: 1.25rem 2rem; }
  main { padding: 0 2rem 5rem; }
  .hero { padding: 3.5rem 0 2.25rem; }
  .hero-art { height: 130px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 1.08rem; }
  .filters-inner { grid-template-columns: 1fr 1fr; }
  .eatery-grid { grid-template-columns: 1fr 1fr; }
  .eatery-header h1 { font-size: 2.3rem; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .bar-row { grid-template-columns: 9rem 1fr 2rem; }
}

/* geo: links only work on devices that actually have a map app registered
   as a handler (phones/tablets). On desktop they just throw a browser
   error, so hide that button for fine-pointer (mouse/trackpad) devices. */
@media (any-pointer: fine) {
  .geo-link { display: none; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .chevron-divider, .filters, .sort-bar,
  .save-btn, .geo-link, .hero-art, .hero-photo, .contact-links .btn-outline {
    display: none !important;
  }
  body { background: white; }
  main { max-width: 100%; padding: 0; }
  a { color: var(--ink); text-decoration: none; }
  a[href]:after { content: " (" attr(href) ")"; font-size: 0.75em; color: var(--muted); }
  .eatery-header { text-align: left; }
  .contact-block { background: none; border: 1px solid var(--line); }
  .review-photos img { max-width: 45%; }
}
