/*
Theme Name: Janes Restaurant Directory
Theme URI: https://example.com/janes-restaurant
Author: Janes Restaurant Directory
Author URI: https://example.com
Description: Janes Restaurant Directory is a nationwide restaurant directory theme. Browse restaurants by city, drill into a cuisine, and land on hyper-local pages such as "Best French Restaurant in Dallas". Ships with a built-in batched CSV importer.
Version: 1.5.7
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: janes-restaurant
Tags: directory, restaurant, custom-post-type, custom-taxonomy, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
    --ink: #17130F;
    --ink-soft: #40372F;
    --muted: #7C7066;
    --muted-light: #9C9187;

    --cream: #FFFCF7;
    --sand: #F7F1E6;
    --sand-deep: #F0E7D8;
    --line: #E9E0D1;
    --line-strong: #D9CDB9;

    --brand: #C4531F;
    --brand-dark: #A03F13;
    --brand-light: #F3D9C7;
    --gold: #C99324;
    --green: #1E6B52;

    --shadow-sm: 0 1px 2px rgba(23, 19, 15, .06);
    --shadow: 0 6px 20px -8px rgba(23, 19, 15, .18);
    --shadow-lg: 0 24px 60px -28px rgba(23, 19, 15, .35);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --container: 1200px;
    --font-head: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.18;
    color: var(--ink);
    margin: 0 0 .5em;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
p  { margin: 0 0 1rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn,
button.btn,
input[type="submit"].btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
    text-align: center;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .icon { width: 18px; height: 18px; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }

.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.site-header { position: relative; z-index: 50; background: var(--cream); border-bottom: 1px solid var(--line); }
.site-header.is-sticky { position: sticky; top: 0; }

.header-main { background: var(--cream); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--brand), #E07B39);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; line-height: 1.1; letter-spacing: -.02em; }
.brand-tag { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .35rem; }
.main-nav a {
    display: block; padding: .55rem .85rem; border-radius: var(--radius-pill);
    color: var(--ink-soft); font-weight: 500; font-size: .95rem;
}
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-parent > a { color: var(--brand); background: var(--brand-light); }

.nav-toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px;
    background: #fff; cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-toggle { display: grid; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--cream); border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        display: none; padding: .75rem 24px 1.25rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: .8rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   5. Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(125% 130% at 50% 0%, #3E2C1C 0%, #241A12 48%, #17130F 100%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-content { max-width: 780px; margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2.25rem, 5.2vw, 4rem); margin-bottom: 1rem; letter-spacing: -.025em; }
.hero h1 em { font-style: italic; color: #F5C77E; }
.hero-lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, .84); max-width: 620px; margin: 0 auto 2rem; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .9rem; margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.hero-eyebrow .icon { width: 14px; height: 14px; color: var(--gold); }

.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero-stat b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; color: #fff; }
.hero-stat span { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .62); font-weight: 600; }

/* Homepage city search */
.hero-search { position: relative; max-width: 640px; margin: .25rem auto 0; }
.hero-search input[type="search"] {
    width: 100%;
    padding: 1.15rem 1.5rem 1.15rem 4rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: var(--radius-pill);
    background: #fff; color: var(--ink);
    font-size: clamp(1rem, 1.4vw, 1.12rem); font-weight: 500;
    box-shadow: var(--shadow-lg);
}
.hero-search input[type="search"]::placeholder { color: var(--muted); font-weight: 400; }
.hero-search input[type="search"]:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(196, 83, 31, .22), var(--shadow-lg);
}
.hero-search-icon {
    position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; pointer-events: none;
}
.hero-search-icon .icon { width: 22px; height: 22px; color: var(--brand); }
.hero-search-hint { margin: .75rem 0 0; text-align: center; font-size: .85rem; color: rgba(255, 255, 255, .68); }

@media (max-width: 560px) {
    .hero-search input[type="search"] { padding: 1rem 1.15rem 1rem 3.25rem; }
    .hero-search-icon { left: 1.15rem; }
}

/* ==========================================================================
   6. Sections
   ========================================================================== */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: rgba(255, 255, 255, .82); }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-head .section-title { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 620px; }
.section-ink .section-head p { color: rgba(255, 255, 255, .68); }
.section-kicker {
    display: block; margin-bottom: .6rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.section-ink .section-kicker { color: #F5C77E; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; white-space: nowrap; }
.section-link .icon { width: 16px; height: 16px; }

/* ==========================================================================
   7. Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* City / term tiles */
.tile {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--ink); }
.tile-icon {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center;
    border-radius: 12px; background: var(--sand); color: var(--brand);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-body { min-width: 0; flex: 1; }
.tile-name { display: block; font-weight: 600; font-size: 1.02rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-count { display: block; font-size: .82rem; color: var(--muted); }
.tile-arrow { width: 18px; height: 18px; color: var(--muted-light); flex: none; transition: transform .18s ease; }
.tile:hover .tile-arrow { transform: translateX(3px); color: var(--brand); }

.tile-featured { background: linear-gradient(140deg, #fff, var(--sand)); }
.tile-featured .tile-icon { background: var(--brand); color: #fff; }

/* Generic content card */
.card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.card-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .94rem; margin: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .6rem; }
.tag {
    display: inline-block; padding: .22rem .6rem; border-radius: var(--radius-pill);
    background: var(--brand-light); color: var(--brand-dark);
    font-size: .74rem; font-weight: 600; letter-spacing: .01em;
}
.tag-muted { background: var(--sand); color: var(--muted); }
.card-title { font-size: 1.18rem; margin: 0 0 .5rem; line-height: 1.28; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); }

/* Rating stars */
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

/* ==========================================================================
   8. Page hero / breadcrumbs
   ========================================================================== */
.page-hero { background: var(--ink); color: #fff; padding: clamp(2rem, 4vw, 3.25rem) 0; position: relative; overflow: hidden; }
.page-hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(900px 380px at 88% -30%, rgba(196, 83, 31, .5), transparent 70%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin: 0 0 .5rem; }
.page-hero .lede { color: rgba(255, 255, 255, .78); max-width: 720px; margin: 0; }
.page-hero .count-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-bottom: .9rem; padding: .3rem .8rem;
    border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

.breadcrumbs { font-size: .84rem; color: var(--muted); padding: 1.15rem 0 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 .5rem; color: var(--line-strong); }
.breadcrumbs .current { color: var(--ink-soft); font-weight: 600; }
.page-hero .breadcrumbs { color: rgba(255, 255, 255, .6); padding: 0 0 1rem; }
.page-hero .breadcrumbs a { color: rgba(255, 255, 255, .78); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs .sep { color: rgba(255, 255, 255, .35); }
.page-hero .breadcrumbs .current { color: #fff; }

/* ==========================================================================
   9. Panels & prose
   ========================================================================== */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.panel-title { font-size: 1.15rem; margin: 0 0 1rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }

.prose { font-size: 1.02rem; color: var(--ink-soft); }
.prose h2, .prose h3 { margin-top: 1.75rem; }
.prose p:last-child { margin-bottom: 0; }

/* ==========================================================================
   10. Results / directory listing pages
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filters form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filters input[type="search"] {
    padding: .6rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
    background: #fff; font-size: .9rem; min-width: 220px;
}

.pagination { margin: 2.5rem 0 0; }
.pagination ul.page-numbers,
.pagination .nav-links {
    display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: center;
    list-style: none; margin: 0; padding: 0;
}
.pagination .page-numbers {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .75rem;
    border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem;
    text-decoration: none; line-height: 1;
}
.pagination .page-numbers:hover,
.pagination .page-numbers:focus { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current {
    background: var(--brand); border-color: var(--brand); color: #fff;
    cursor: default; pointer-events: none;
}
.pagination .page-numbers.dots { border-color: transparent; background: none; color: var(--muted); pointer-events: none; }
.pagination a.page-numbers { transition: border-color .2s, color .2s; }
.pagination .page-numbers svg,
.pagination .page-numbers .icon { width: 16px; height: 16px; flex: none; }
.pagination .page-numbers .next, .pagination .page-numbers .prev { display: inline-flex; align-items: center; }

/* Empty state */
.empty-state { text-align: center; padding: clamp(3rem, 7vw, 5rem) 1rem; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state .icon { width: 46px; height: 46px; color: var(--line-strong); margin: 0 auto 1rem; }
.empty-state h2 { margin-bottom: .5rem; }
.empty-state p { color: var(--muted); max-width: 480px; margin: 0 auto 1.5rem; }

/* Category chip cloud */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
    font-size: .88rem; font-weight: 500;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip b { color: var(--muted); font-weight: 600; font-size: .8rem; }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-active b { color: rgba(255, 255, 255, .8); }

/* ==========================================================================
   11. Feature / brand sections
   ========================================================================== */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .feature-split { grid-template-columns: 1fr; } }
.feature-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--sand-deep); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem 1.5rem; }
.step-num {
    display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1rem;
    border-radius: 12px; background: var(--brand-light); color: var(--brand-dark);
    font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

.cta-band { background: linear-gradient(120deg, var(--brand-dark), #D9772F); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 620px; margin: 0 auto 1.75rem; }
.cta-band .btn-light:hover { background: #fff; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); margin-top: 0; }
.footer-main { padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: rgba(255, 255, 255, .5); }
.footer-brand p { margin-top: 1rem; font-size: .92rem; max-width: 340px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: rgba(255, 255, 255, .68); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom a { color: rgba(255, 255, 255, .68); }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   13. Utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.icon { fill: currentColor; }

/* ==========================================================================
   14. Article — "Best {category} in {city}"
   ========================================================================== */
.article-meta {
    display: flex; flex-wrap: wrap; gap: .55rem 1.4rem;
    list-style: none; margin: 1.25rem 0 0; padding: 0;
    font-size: .88rem; color: rgba(255, 255, 255, .8);
}
.article-meta li { display: inline-flex; align-items: center; gap: .45rem; }
.article-meta .icon { width: 16px; height: 16px; color: #F5C77E; flex: none; }

.article-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(1.75rem, 4vw, 3rem);
    align-items: start;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.article-body {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}
.article-body.prose { font-size: 1.05rem; line-height: 1.75; }
.article-body > h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    margin-top: 2.5rem; padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}
.article-body > h2:first-of-type { margin-top: 1.75rem; padding-top: 0; border-top: 0; }
.article-intro { font-size: 1.16rem; line-height: 1.72; color: var(--ink); }

/* Listing row (full details inline) */
.listing-list { display: flex; flex-direction: column; margin: 1.5rem 0 0; }
.listing {
    display: grid; grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 0; border-top: 1px solid var(--line);
}
.listing:first-child { border-top: 0; padding-top: 0; }
.listing:last-child { padding-bottom: 0; }

.listing-media {
    display: block; aspect-ratio: 4 / 3; border-radius: var(--radius);
    overflow: hidden; background: var(--sand-deep);
}
.listing-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Illustrated placeholder for restaurants without a photo yet. Drawn in CSS
   so it always matches the brand and needs no image file. */
.listing-media-fallback {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: .15rem; width: 100%; height: 100%; text-align: center; position: relative;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .5), transparent 42%),
        radial-gradient(circle at 12% 85%, rgba(201, 147, 36, .18), transparent 46%),
        linear-gradient(140deg, var(--brand-light), var(--sand) 58%, var(--sand-deep));
    overflow: hidden;
}
.listing-media-fallback::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(164, 63, 19, .1) 1px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: .55;
}
.listing-media-icon { width: 44px; height: 44px; color: var(--brand); opacity: .9; position: relative; }
.listing-media-title {
    position: relative; font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
    line-height: 1; color: var(--brand-dark); margin-top: .2rem;
}
.listing-media-label {
    position: relative; font-size: .74rem; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; color: var(--muted); margin-top: .1rem;
}
.listing-media-fallback .listing-media-icon { margin-bottom: -.1rem; }

.listing-body { min-width: 0; }
.listing-title { font-size: 1.35rem; margin: 0 0 .5rem; line-height: 1.25; }

.listing-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .92rem; margin-bottom: .6rem; }
.listing-rating .stars svg { width: 16px; height: 16px; }
.listing-reviews { color: var(--muted); }

.listing-desc { color: var(--muted); font-size: .97rem; margin: 0 0 .9rem; }
.listing-desc p { margin: 0 0 .7rem; }
.listing-desc p:last-child { margin-bottom: 0; }

.listing-facts { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.listing-facts li { display: flex; align-items: flex-start; gap: .5rem; font-size: .93rem; color: var(--ink-soft); }
.listing-facts .icon { width: 16px; height: 16px; flex: none; margin-top: .18rem; color: var(--brand); }
.listing-facts a { word-break: break-word; }
.listing-facts small { display: block; color: var(--muted); font-size: .84rem; }

.listing-hours { margin: 0 0 .9rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.listing-hours > summary {
    cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
    font-size: .88rem; font-weight: 700; color: var(--brand-dark);
    font-family: var(--font-body);
}
.listing-hours ul {
    list-style: none; margin: .7rem 0 0; padding: .8rem 1rem;
    background: var(--sand); border-radius: var(--radius-sm);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.5rem;
    font-size: .88rem;
}
.listing-hours li { display: flex; justify-content: space-between; gap: .75rem; color: var(--muted); }
.listing-hours li span:last-child { color: var(--ink-soft); font-weight: 600; }

.listing-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.listing-actions .icon { width: 15px; height: 15px; }

/* Sticky sidebar */
.article-side { min-width: 0; }
.article-side-inner { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.side-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.35rem; box-shadow: var(--shadow-sm);
}
.side-title { font-size: 1.02rem; margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }

.side-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.side-facts li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.side-facts span { color: var(--muted); }
.side-facts strong { color: var(--ink); font-weight: 600; text-align: right; }
.side-facts a { color: var(--brand); }
.side-facts a:hover { color: var(--brand-dark); }

.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .62rem 0; font-size: .92rem; color: var(--ink-soft); }
.side-list a:hover { color: var(--brand); }
.side-list b {
    flex: none; min-width: 34px; text-align: center; padding: .12rem .45rem;
    border-radius: var(--radius-pill); background: var(--sand); color: var(--muted);
    font-size: .76rem; font-weight: 700;
}
.side-list a:hover b { background: var(--brand-light); color: var(--brand-dark); }

.side-more { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.side-more .icon { width: 15px; height: 15px; }
.side-more:hover { color: var(--brand-dark); }

@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-side-inner { position: static; }
}
@media (max-width: 860px) {
    .listing { grid-template-columns: 1fr; gap: 1.15rem; }
    .listing-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 620px) {
    .article-body { padding: 1.5rem 1.15rem; border-radius: var(--radius); }
    .article-body > h2 { margin-top: 2rem; padding-top: 1.5rem; }
    .listing-hours ul { grid-template-columns: 1fr; }
    .listing-title { font-size: 1.2rem; }
}
