/*
Theme Name: Buffet Directory
Theme URI: https://example.com
Author: Buffet Directory
Description: Directory theme for all-you-can-eat buffets: listings with lunch/dinner/weekend prices, hours and "last verified" dates; state/city, buffet type and chain pages; Best-of rankings; Rank Math integration. Requires ACF (free) for the edit screens.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: buffet-directory
*/

/* =============================================
   CSS VARIABLES — warm buffet palette
   ============================================= */
:root {
    --primary:        #c2410c;
    --primary-dark:   #9a3412;
    --primary-light:  #f97316;
    --primary-pale:   #fff7ed;

    --accent:         #ca8a04;
    --accent-light:   #fde68a;

    --success:        #15803d;
    --danger:         #b91c1c;

    --secondary:      #1c1917;
    --text-dark:      #292524;
    --text-muted:     #6b625c;
    --text-light:     #ffffff;

    --bg-white:       #ffffff;
    --bg-light:       #fafaf9;
    --bg-section:     #f5f5f4;

    --border:         #e7e5e4;
    --border-light:   #f5f5f4;

    --shadow-xs:  0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm:  0 2px 8px rgba(194,65,12,0.08);
    --shadow-md:  0 4px 24px rgba(194,65,12,0.12);
    --shadow-lg:  0 8px 40px rgba(194,65,12,0.16);

    --radius-xs:  4px;
    --radius-sm:  8px;
    --radius:     12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-full: 9999px;

    --transition: 0.22s ease;

    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
    letter-spacing: -0.02em;
}
p { line-height: 1.7; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* =============================================
   HEADER
   ============================================= */
#site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    gap: 24px;
}
.site-branding a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.site-branding img.logo { height: 36px; width: auto; }
.site-title-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.03em;
    line-height: 1;
}
.site-title-text span { color: var(--primary); }
.site-tagline { font-size: 0.7rem; color: var(--text-muted); display: block; font-weight: 400; }

#primary-navigation ul { display: flex; list-style: none; gap: 2px; align-items: center; }
#primary-navigation ul li a {
    display: block;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: background var(--transition), color var(--transition);
}
#primary-navigation ul li a:hover,
#primary-navigation ul li.current-menu-item > a {
    background: var(--primary-pale);
    color: var(--primary);
}
.nav-cta {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 7px 18px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 600 !important;
    margin-left: 6px;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: #fff !important; transform: translateY(-1px); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    border-radius: var(--radius-sm);
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--secondary); border-radius: 2px; transition: var(--transition); }

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #431407 url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='40' cy='40' r='14'/%3E%3Ccircle cx='0' cy='0' r='8'/%3E%3Ccircle cx='80' cy='80' r='8'/%3E%3C/g%3E%3C/svg%3E");
    position: relative;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(154,52,18,0.88) 0%, rgba(17,24,39,0.9) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 720px;
    padding: 48px 24px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.88);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}
.hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #a5b4fc, #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    line-height: 1.75;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stat { text-align: center; }
.hero-stat-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    display: block;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-family: var(--font-body);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(194,65,12,0.35);
    color: #fff;
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    color: var(--secondary);
    border: 1.5px solid var(--border);
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    font-family: var(--font-body);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.87rem;
    transition: gap var(--transition), color var(--transition);
}
.btn-link:hover { gap: 9px; color: var(--primary-dark); }

/* =============================================
   SECTIONS
   ============================================= */
.section       { padding: 80px 0; }
.section-alt   { background: var(--bg-light); }
.section-white { background: var(--bg-white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-pale);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}
.section-header h2, .section-header h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--secondary);
    margin-bottom: 10px;
    letter-spacing: -0.03em;
}
.section-header p { color: var(--text-muted); font-size: 0.97rem; max-width: 520px; margin: 0 auto; }
.section-divider {
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 14px auto 0;
    opacity: 0.45;
}

/* =============================================
   SEARCH SECTION
   ============================================= */
.search-section {
    background: var(--bg-white);
    padding: 64px 0;
    border-bottom: 1px solid var(--border);
}
.search-form-wrap { max-width: 680px; margin: 0 auto; }
.search-dropdowns { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.search-dropdowns .dropdown-group { flex: 1; min-width: 190px; }
.search-dropdowns label {
    display: block;
    font-weight: 600;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.search-dropdowns select {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: var(--bg-white);
    cursor: pointer;
    appearance: none;
    font-family: var(--font-body);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.search-dropdowns select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(194,65,12,0.12);
}

/* =============================================
   CARD GRIDS
   ============================================= */
.cards-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: rgba(194,65,12,0.2);
}
.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-section);
}
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }
.card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.card-title { font-size: 0.93rem; font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; margin: 0; }
.card-title a { color: var(--secondary); transition: color var(--transition); }
.card-title a:hover { color: var(--primary); }
.card-meta { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: 0.78rem; }
.card-count {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--primary-pale); color: var(--primary);
    padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 0.74rem; font-weight: 600; margin-top: auto;
}
.card-rating { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; }
.stars { color: var(--accent); letter-spacing: 1px; font-size: 0.82rem; }
.rating-value { font-weight: 700; color: var(--secondary); font-size: 0.83rem; }
.rating-count { color: var(--text-muted); font-size: 0.73rem; }
.card-address { color: var(--text-muted); font-size: 0.78rem; display: flex; align-items: flex-start; gap: 4px; line-height: 1.5; }
.card-date { font-size: 0.74rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 4px; font-weight: 500; }

/* =============================================
   BADGES & PILLS
   ============================================= */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: var(--radius-full);
    font-size: 0.71rem; font-weight: 600; letter-spacing: 0.02em;
}
.badge-primary   { background: var(--primary-pale); color: var(--primary); }
.badge-success   { background: #ecfdf5; color: #065f46; }
.badge-warning   { background: #fffbeb; color: #92400e; }
.badge-hot       { background: #fff1f2; color: #be123c; }
.badge-new       { background: #f0fdf4; color: #166534; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
    padding: 10px 0; font-size: 0.8rem; color: var(--text-muted);
    display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs .current { color: var(--text-dark); font-weight: 500; }

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #431407 100%);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .breadcrumbs { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumbs a { color: rgba(255,255,255,0.55); }
.page-hero .breadcrumbs a:hover { color: #fff; }
.page-hero .breadcrumbs .sep { color: rgba(255,255,255,0.25); }
.page-hero .breadcrumbs .current { color: rgba(255,255,255,0.88); }
.page-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff; margin-top: 10px;
    line-height: 1.2; letter-spacing: -0.03em; position: relative;
}
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 10px; font-size: 0.97rem; position: relative; }
.page-hero-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; position: relative; }
.page-hero-meta span {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.82); font-size: 0.8rem; font-weight: 500;
    background: rgba(255,255,255,0.1); padding: 4px 12px;
    border-radius: var(--radius-full); border: 1px solid rgba(255,255,255,0.16);
}
.back-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: rgba(255,255,255,0.65); font-size: 0.8rem; font-weight: 500;
    margin-bottom: 8px; transition: color var(--transition); position: relative;
}
.back-link:hover { color: #fff; }

/* =============================================
   SINGLE POST
   ============================================= */
.single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 56px 0; }
.featured-image-wrap {
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
    aspect-ratio: 16/9; background: var(--bg-section);
}
.featured-image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.content-section {
    background: var(--bg-white); border-radius: var(--radius-lg);
    padding: 22px 24px; margin-bottom: 16px; border: 1px solid var(--border);
}
.content-section h2 {
    font-size: 0.97rem; font-weight: 700; color: var(--secondary);
    margin-bottom: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 7px; letter-spacing: -0.01em;
}
.description-content { color: var(--text-dark); line-height: 1.8; font-size: 0.92rem; }

.info-card {
    background: var(--bg-white); border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden; margin-bottom: 16px;
}
.info-card-header {
    background: var(--bg-light); border-bottom: 1px solid var(--border);
    color: var(--secondary); padding: 11px 16px; font-weight: 700;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em;
    display: flex; align-items: center; gap: 7px;
}
.info-card-body { padding: 14px 16px; }
.info-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 0; border-bottom: 1px solid var(--border-light); font-size: 0.86rem;
}
.info-row:last-child { border-bottom: none; }
.info-row-label {
    font-weight: 600; color: var(--text-muted); min-width: 88px;
    flex-shrink: 0; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.info-row-value { color: var(--text-dark); flex: 1; }

/* =============================================
   WORK HOURS
   ============================================= */
.work-hours-grid { display: grid; gap: 3px; }
.work-hour-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 11px; border-radius: var(--radius-sm); font-size: 0.83rem;
}
.work-hour-row.today { background: var(--primary-pale); border: 1px solid rgba(194,65,12,0.18); }
.day-name { font-weight: 600; color: var(--secondary); text-transform: capitalize; min-width: 96px; font-size: 0.83rem; }
.day-hours { color: var(--text-muted); font-size: 0.81rem; }
.day-hours.open { color: var(--success); font-weight: 500; }
.day-hours.closed { color: #dc2626; }

/* =============================================
   ATTRIBUTES
   ============================================= */
.attributes-list { display: flex; flex-wrap: wrap; gap: 6px; }
.attribute-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bg-light); color: var(--text-dark);
    padding: 4px 11px; border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 500; border: 1px solid var(--border);
}
.attribute-tag.available { border-color: rgba(16,185,129,0.3); background: #ecfdf5; color: #065f46; }
.attribute-tag.available::before { content: '✓'; color: var(--success); font-weight: 700; }
.attribute-tag.unavailable { border-color: rgba(220,38,38,0.2); background: #fef2f2; color: #991b1b; }
.attribute-tag.unavailable::before { content: '✗'; color: #dc2626; font-weight: 700; }

/* =============================================
   TOPICS GRID
   ============================================= */
.topics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.topic-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 7px 11px; background: var(--bg-light); border-radius: var(--radius-sm);
    font-size: 0.81rem; border: 1px solid var(--border-light);
}
.topic-name { font-weight: 500; color: var(--secondary); text-transform: capitalize; }
.topic-count {
    background: var(--primary); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full);
}

/* =============================================
   CATEGORY PAGES
   ============================================= */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.category-card {
    background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.category-card:hover {
    box-shadow: var(--shadow-md); transform: translateY(-4px);
    border-color: rgba(194,65,12,0.22); color: inherit;
}
.category-card-img {
    position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-section);
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.category-card:hover .category-card-img img { transform: scale(1.05); }
.category-card-badge {
    position: absolute; top: 10px; left: 10px; font-size: 1.3rem; line-height: 1;
    background: rgba(255,255,255,0.95); border-radius: var(--radius-sm);
    padding: 5px 8px; box-shadow: var(--shadow-xs);
}
.category-card-body {
    padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px;
}
.category-card-title {
    font-size: 0.97rem; font-weight: 700; color: var(--secondary);
    margin: 0; line-height: 1.3; letter-spacing: -0.01em;
}
.category-card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.category-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border-light);
}

.category-archive-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #431407 100%);
    color: #fff; padding: 64px 0; position: relative; overflow: hidden;
}
.category-archive-hero::after {
    content: attr(data-icon);
    position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
    font-size: 7rem; opacity: 0.1; line-height: 1; pointer-events: none;
}
.cat-archive-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cat-archive-meta span {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.88); padding: 4px 14px; border-radius: var(--radius-full); font-size: 0.8rem;
}

.cat-sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.cat-sidebar-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 11px; border-radius: var(--radius-sm);
    color: var(--text-dark); font-size: 0.86rem;
    transition: background var(--transition), color var(--transition);
}
.cat-sidebar-list li a:hover,
.cat-sidebar-list li.active a { background: var(--primary-pale); color: var(--primary); }
.cat-sidebar-list .cat-count {
    background: var(--bg-section); color: var(--text-muted);
    font-size: 0.71rem; padding: 2px 7px; border-radius: var(--radius-full); font-weight: 600;
}
.cat-sidebar-list li.active .cat-count { background: var(--primary); color: #fff; }

.filter-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 18px; background: var(--bg-white);
    border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 22px;
}
.filter-bar-label {
    font-weight: 700; font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap;
}
.filter-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--bg-light); border: 1px solid var(--border);
    color: var(--text-muted); padding: 4px 11px; border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.filter-tag:hover,
.filter-tag.active { background: var(--primary-pale); border-color: rgba(194,65,12,0.3); color: var(--primary); }

/* =============================================
   CONTACT INFO
   ============================================= */
.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.contact-info-list li { display: flex; align-items: center; gap: 8px; }
.info-label { color: var(--text-muted); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-info-list a { color: var(--primary); font-weight: 500; }
.contact-info-list a:hover { color: var(--primary-dark); text-decoration: underline; }

/* =============================================
   RELATED SECTION
   ============================================= */
.related-section { padding: 56px 0; background: var(--bg-light); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: #1c1917; color: rgba(255,255,255,0.55); }
.footer-top { padding: 64px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-grid { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo-wrap {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; text-decoration: none;
}
.footer-brand img.logo { height: 34px; width: auto; }
.footer-brand-name { font-weight: 800; color: #fff; font-size: 1.05rem; letter-spacing: -0.02em; }
.footer-brand p { font-size: 0.84rem; line-height: 1.75; color: rgba(255,255,255,0.45); max-width: 230px; }
.footer-widget h4 {
    color: rgba(255,255,255,0.88); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.09em; font-weight: 700; margin-bottom: 16px;
}
#footer-navigation ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
#footer-navigation ul li a { color: rgba(255,255,255,0.45); font-size: 0.86rem; transition: color var(--transition); }
#footer-navigation ul li a:hover { color: #fff; }
.footer-bottom {
    padding: 20px 0; display: flex; align-items: center; justify-content: space-between;
    font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

/* =============================================
   MISC UTILITIES
   ============================================= */
.no-results { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.no-results h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--secondary); }
.load-more-wrap { text-align: center; margin-top: 40px; }
.category-color-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }

/* Pagination */
.pagination, .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers, .nav-links a, .nav-links span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
    border: 1px solid var(--border); background: var(--bg-white);
    transition: all var(--transition); text-decoration: none;
}
.page-numbers:hover, .nav-links a:hover { background: var(--primary-pale); color: var(--primary); border-color: rgba(194,65,12,0.3); }
.page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-numbers.dots { border: none; background: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .single-layout { grid-template-columns: 1fr; }
    .single-sidebar { order: -1; }
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .topics-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    #primary-navigation {
        display: none; position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg-white); padding: 12px 16px;
        border-top: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    #primary-navigation.open { display: block; }
    #primary-navigation ul { flex-direction: column; gap: 2px; }
    .hamburger { display: flex; }
    .section { padding: 48px 0; }
    .hero-section { background-attachment: scroll; }
    .hero-stats { gap: 24px; }
    .cards-grid-4, .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { padding: 40px 0 28px; }
    .footer-brand p { max-width: none; }
    .search-dropdowns { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .page-hero { padding: 40px 0; }
    .category-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 1.9rem; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .container, .container-wide { padding: 0 16px; }
    .header-inner { padding: 0 16px; }
}

/* ── Claim listing / owner dashboard ───────────────────────────────────── */
.bd-badge-verified{display:inline-flex;align-items:center;gap:4px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:999px;font-size:.72rem;font-weight:700;padding:2px 9px;vertical-align:middle;line-height:1.5}
.page-hero .bd-badge-verified{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.45)}
.bd-claim-form{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.bd-claim-form[hidden]{display:none}
.bd-claim-form label,.owner-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600}
.bd-claim-form input,.bd-claim-form select,.bd-claim-form textarea,.owner-form input,.owner-form textarea{font:inherit;font-weight:400;padding:9px 11px;border:1px solid #d1d5db;border-radius:8px;width:100%;box-sizing:border-box}
.owner-form fieldset{border:1px solid #e5e7eb;border-radius:12px;padding:16px 18px;margin:0 0 20px;display:flex;flex-direction:column;gap:12px;background:#fff}
.owner-form legend{font-weight:700;padding:0 8px}
.bd-notice-ok{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;padding:10px 14px;border-radius:8px;margin-bottom:16px}


/* =============================================
   BUFFET DIRECTORY COMPONENTS
   ============================================= */
.screen-reader-text { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }
.skip-link:focus { position:fixed; top:8px; left:8px; z-index:1000; width:auto; height:auto; clip:auto; background:#fff; color:var(--primary); padding:8px 14px; border-radius:var(--radius-sm); }
.site-branding .custom-logo { max-height:48px; width:auto; }

.page-hero-accent { background: linear-gradient(135deg, var(--primary) 0%, #431407 100%); }
.page-hero .page-hero-lead { color: rgba(255,255,255,.88); margin-top: 10px; font-size: 1.05rem; max-width: 760px; }
.page-hero .page-hero-lead a { color:#fff; text-decoration: underline; }
.page-hero-sub { color: rgba(255,255,255,.85)!important; font-size: 1.05rem!important; }
.page-hero-sub a { color:#fff; text-decoration: underline; }
.hero-chip { display:inline-flex; align-items:center; gap:6px; background: rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); color:#fff; padding:6px 14px; border-radius: var(--radius-full); font-size:.88rem; font-weight:600; }
a.hero-chip:hover { background: rgba(255,255,255,.24); color:#fff; }
.hero-chip-closed { background: var(--danger); border-color: var(--danger); }
.btn-on-dark { background: rgba(255,255,255,.15)!important; border-color: rgba(255,255,255,.5)!important; color:#fff!important; margin-left: 10px; }

.container-narrow-wide { max-width: 1100px; }
.prose-col { max-width: 820px; line-height: 1.8; }
.prose-col h3 { margin: 24px 0 8px; font-size: 1.15rem; }
.prose-col ul { padding-left: 20px; }
.term-description { margin-bottom: 28px; }
.section-title-sm { font-size: 1.4rem; margin: 36px 0 14px; letter-spacing: -.02em; }
.muted-note { color: var(--text-muted); font-size: .88rem; margin-top: 12px; }
.center-link { text-align:center; margin-top: 20px; font-weight:600; }
.keep-exploring { margin-top: 36px; }
.filter-count { display:inline-block; min-width:22px; padding:1px 7px; border-radius: var(--radius-full); background: var(--bg-section); color: var(--text-muted); font-size:.75rem; font-weight:700; text-align:center; }

/* Cards */
.card-img-wrap { position: relative; }
.card-rank { position:absolute; top:10px; left:10px; background: var(--primary); color:#fff; min-width:34px; height:34px; display:flex; align-items:center; justify-content:center; border-radius: var(--radius-full); font-weight:800; padding:0 10px; }
.card-distance { position:absolute; top:10px; right:10px; background: rgba(0,0,0,.65); color:#fff; padding:3px 10px; border-radius: var(--radius-full); font-size:.75rem; font-weight:700; }
.card-status { position:absolute; bottom:10px; left:10px; background: var(--danger); color:#fff; padding:3px 10px; border-radius: var(--radius-full); font-size:.75rem; font-weight:700; }
.card-closed img { filter: grayscale(.8); opacity:.75; }
.card-rating { margin-bottom: 8px; }
.card-tags { display:flex; flex-wrap:wrap; gap:4px; margin: 4px 0 8px; }
.card-tag { background: var(--primary-pale); color: var(--primary-dark); padding:2px 9px; border-radius: var(--radius-full); font-size:.72rem; font-weight:600; }
.card-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:12px; border-top:1px solid var(--border); }
.card-price { font-weight:700; color: var(--success); font-size:.88rem; }

/* Tables */
.bd-table-wrap { overflow-x:auto; -webkit-overflow-scrolling: touch; margin: 8px 0; border:1px solid var(--border); border-radius: var(--radius); background: var(--bg-white); }
.bd-table { width:100%; border-collapse: collapse; font-size: .95rem; }
.bd-table th, .bd-table td { padding: 11px 14px; text-align:left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.bd-table thead th { background: var(--bg-section); font-size:.78rem; text-transform: uppercase; letter-spacing:.04em; color: var(--text-muted); }
.bd-table tbody th { font-weight:600; }
.bd-table tbody tr:last-child th, .bd-table tbody tr:last-child td { border-bottom: 0; }
.bd-price-table td { font-weight:700; color: var(--success); font-size:1.05rem; white-space: nowrap; }
.price-notes { margin-top: 10px; color: var(--text-dark); }
.verified-line { margin-top: 12px; font-size:.85rem; color: var(--text-muted); }
.verified-line a { color: var(--primary); }
.hours-text { background: var(--bg-white); border:1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; line-height:1.9; }

/* Notices */
.notice-closed { margin: 20px 0 0; padding: 14px 18px; border-radius: var(--radius); background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; }
.notice-closed a { color:#7f1d1d; text-decoration: underline; }
.notice-temp { background:#fffbeb; border-color:#fde68a; color:#78350f; }
.owner-offer { background: var(--primary-pale); border-radius: var(--radius-sm); padding:10px 12px; font-weight:600; }

/* Sidebar */
.info-card-actions { display:flex; flex-direction:column; gap:10px; }
.info-card-actions .btn-primary, .info-card-actions .btn-secondary { justify-content:center; }
.chip-list { display:flex; flex-wrap:wrap; gap:8px; }
.chip { background: var(--primary-pale); color: var(--primary-dark); border:1px solid rgba(194,65,12,.18); padding:5px 12px; border-radius: var(--radius-full); font-size:.82rem; font-weight:600; }
.chip:hover { background: var(--primary); color:#fff; }
.rating-block { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.rating-big { font-size:2.5rem; font-weight:800; color: var(--primary); }

/* Grids */
.city-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap:10px; margin-bottom: 28px; }
.city-link { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 14px; background: var(--bg-white); border:1px solid var(--border); border-radius: var(--radius-sm); font-weight:600; color: var(--text-dark); }
.city-link:hover { border-color: var(--primary); color: var(--primary); }
.chain-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap:12px; }
.chain-card { display:flex; flex-direction:column; gap:4px; padding:18px; background: var(--bg-white); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.chain-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.chain-card-name { font-weight:800; color: var(--text-dark); font-size:1.05rem; }
.chain-card-meta { color: var(--text-muted); font-size:.85rem; }
.state-blocks { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.state-block { background: var(--bg-white); border:1px solid var(--border); border-radius: var(--radius); padding:16px 18px; }
.state-block h2 { font-size:1.1rem; margin-bottom:8px; display:flex; justify-content:space-between; align-items:center; }
.state-block ul { list-style:none; display:flex; flex-direction:column; gap:4px; font-size:.92rem; }
.sort-bar { display:flex; gap:14px; align-items:center; margin: -4px 0 16px; font-size:.88rem; color: var(--text-muted); }
.sort-bar a[aria-current="true"] { color: var(--primary); font-weight:700; }

/* Footer */
.footer-grid { padding: 0 20px; }
.footer-logo { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer-about { font-size:.88rem; line-height:1.7; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.footer-small { font-size:.78rem; line-height:1.6; color: rgba(255,255,255,.5); }
.footer-small a { color: rgba(255,255,255,.75); text-decoration: underline; }
.footer-heading { color:#fff; font-size:.95rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:18px; padding-bottom:10px; border-bottom:2px solid var(--primary-light); display:inline-block; }
.footer-list, #footer-navigation ul { list-style:none; display:flex; flex-direction:column; gap:7px; }
.footer-list a, #footer-navigation a { color: rgba(255,255,255,.7); font-size:.9rem; }
.footer-list a:hover, #footer-navigation a:hover { color:#fff; }

@media (max-width: 640px) {
    .btn-on-dark { margin-left: 0; margin-top: 10px; }
    .bd-table th, .bd-table td { padding: 9px 10px; }
}

/* Illustration used when a listing has no photo */
.featured-image-wrap { position: relative; }
.featured-image-wrap.is-illustration { border: 1px solid var(--border); }
.illustration-note { position:absolute; right:12px; bottom:12px; background: rgba(255,255,255,.92); color: var(--text-dark); font-size:.8rem; font-weight:600; padding:5px 12px; border-radius: var(--radius-full); box-shadow: var(--shadow-xs); }
.illustration-note a { color: var(--primary); }

/* Google rating + review topics */
.rating-block { align-items: center; }
.rating-dist { flex: 1; min-width: 220px; max-width: 360px; display: flex; flex-direction: column; gap: 4px; margin-left: auto; }
.rating-dist-row { display: grid; grid-template-columns: 28px 1fr 56px; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-muted); }
.topics-lead { margin-bottom: 12px; }
.bd-topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 22px; }
.bd-topic-row { display: grid; grid-template-columns: minmax(90px, 1.1fr) 1fr 44px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-light); font-size: .9rem; }
.bd-topic-name { font-weight: 600; color: var(--text-dark); }
.bd-topic-bar { display: block; height: 8px; background: var(--bg-section); border-radius: var(--radius-full); overflow: hidden; }
.bd-topic-bar span { display: block; height: 100%; background: var(--primary-light); border-radius: var(--radius-full); }
.bd-topic-count { text-align: right; color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 600; }
@media (max-width: 640px) { .rating-dist { margin-left: 0; } }
