/* Cork & Curve — full component stylesheet.
   Tokens + critical nav/hero live inline in base.html; this file carries the
   rest of the layout and every component. Burgundy + cream identity, distinct
   from TableJourney. Mobile-first; breakpoints at 600 / 768 / 1024. */

/* ---------- containers + layout ---------- */
.tj-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.tj-main { display: block; }
/* Default: standalone sections (homepage, etc.) carry their own gutter. */
.tj-section { max-width: 1080px; margin: 0 auto; padding: 6px 16px 26px; }
/* Inside the region/topic/entity layout columns the grid already pads, so
   the section gutter is removed to avoid a double inset. */
.tj-main-col .tj-section { padding-left: 0; padding-right: 0; }
.tj-section > h2 { margin-top: 0; }
.tj-intro { font-size: 1.12rem; color: var(--tj-muted); line-height: 1.65; margin: 0 0 18px; }
.tj-note { color: var(--tj-muted); }

.tj-layout, .tj-layout-3 {
    max-width: 1200px; margin: 0 auto; padding: 8px 16px 40px;
    display: grid; grid-template-columns: 1fr; gap: 28px;
}
.tj-main-col { min-width: 0; }
@media (min-width: 1024px) {
    .tj-layout   { grid-template-columns: minmax(0,1fr) 320px; gap: 40px; align-items: start; }
    .tj-layout-3 { grid-template-columns: 190px minmax(0,1fr) 300px; gap: 36px; align-items: start; }
}

/* ---------- hero ---------- */
.tj-hero-body { max-width: 820px; }
.tj-hero-tagline { font-size: 1.2rem; color: var(--tj-muted); line-height: 1.55; margin: 4px 0 0; }
.tj-stamp { font-weight: 600; color: var(--tj-text); }
.tj-back-hub {
    display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600;
    color: var(--tj-accent); margin-bottom: 14px; text-decoration: none;
}
.tj-back-hub:hover { text-decoration: underline; }

/* ---------- table of contents (left rail) ---------- */
.tj-toc { display: none; }
@media (min-width: 1024px) {
    .tj-toc { display: block; position: sticky; top: calc(var(--tj-nav-h) + 16px); font-size: .9rem; }
    .tj-toc h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tj-muted); margin: 0 0 10px; }
    .tj-toc ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
    .tj-toc a { color: var(--tj-text); text-decoration: none; }
    .tj-toc a:hover { color: var(--tj-accent); }
    .tj-toc-back { color: var(--tj-accent); font-weight: 600; }
}

/* ---------- cards ---------- */
.tj-card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .tj-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tj-layout-3 .tj-card-grid { grid-template-columns: repeat(2, 1fr); } }

.tj-card {
    background: var(--tj-surface); border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius); padding: 18px 18px 16px; box-shadow: var(--tj-shadow);
    display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s ease, transform .15s ease;
}
.tj-card:hover { box-shadow: 0 4px 14px rgba(90,37,44,.10), 0 1px 3px rgba(90,37,44,.08); transform: translateY(-1px); }
.tj-card h3 { margin: 0; font-size: 1.2rem; }
.tj-card-title-link, .tj-card h3 a { color: var(--tj-text); text-decoration: none; }
.tj-card h3 a:hover { color: var(--tj-accent); }
.tj-card-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; color: var(--tj-muted); align-items: center; }
.tj-tag {
    display: inline-block; background: var(--tj-accent-soft); color: var(--tj-accent-ink);
    padding: 2px 10px; border-radius: var(--tj-radius-pill); font-size: .76rem; font-weight: 600;
}
.tj-inline-tag { font-size: .8rem; color: var(--tj-accent); font-weight: 600; }
.tj-card-desc { margin: 2px 0 0; font-size: .95rem; line-height: 1.55; color: var(--tj-text); }
.tj-card-desc strong { color: var(--tj-text); }
.tj-card-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin-top: auto; padding-top: 6px; }
.tj-card-addr { font-size: .85rem; color: var(--tj-muted); text-decoration: none; }
.tj-card-addr:hover { color: var(--tj-accent); }
.tj-card-addr-arrow { opacity: .6; }
.tj-card-link { color: var(--tj-accent); font-weight: 600; font-size: .9rem; text-decoration: none; }
.tj-card-link:hover { text-decoration: underline; }
.tj-score { color: var(--tj-accent); font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ---------- signature wine / grape "dish" strip ---------- */
.tj-dish-strip { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .tj-dish-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tj-dish-strip { grid-template-columns: repeat(3, 1fr); } }
.tj-dish {
    background: var(--tj-surface); border: 1px solid var(--tj-border); border-left: 3px solid var(--tj-accent);
    border-radius: var(--tj-radius-sm); padding: 14px 16px; display: block; text-decoration: none; color: inherit;
}
a.tj-dish:hover { box-shadow: var(--tj-shadow); }
.tj-dish-name { margin: 0 0 4px; font-size: 1.1rem; }
.tj-dish-desc { margin: 0 0 6px; font-size: .92rem; color: var(--tj-text); line-height: 1.5; }
.tj-dish-where { margin: 2px 0 0; font-size: .85rem; color: var(--tj-muted); }

/* ---------- topic chips ---------- */
.tj-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 0; }
@media (min-width: 600px) { .tj-topic-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tj-topic-grid { grid-template-columns: repeat(4, 1fr); } }
.tj-topic-chip {
    display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--tj-border);
    border-radius: var(--tj-radius-sm); background: var(--tj-surface); color: var(--tj-text);
    text-decoration: none; font-weight: 500; font-size: .92rem; transition: border-color .15s, background .15s;
}
.tj-topic-chip:hover { border-color: var(--tj-accent); background: var(--tj-accent-soft); }
.tj-topic-chip-icon { font-size: 1.15rem; line-height: 1; }
.tj-topic-chip-name { line-height: 1.2; }

/* ---------- sidebar ---------- */
.tj-sidebar { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1024px) { .tj-sidebar { position: sticky; top: calc(var(--tj-nav-h) + 16px); } }
.tj-sidebar-box { background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); padding: 16px 18px; }
.tj-sidebar-box h3 { margin: 0 0 10px; font-size: 1.05rem; }
.tj-sidebar-note { font-size: .85rem; color: var(--tj-muted); margin: 0 0 8px; }
.tj-sidebar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.tj-sidebar-list a { color: var(--tj-text); text-decoration: none; }
.tj-sidebar-list a:hover { color: var(--tj-accent); }
.tj-sidebar-list strong { color: var(--tj-muted); font-weight: 600; }

/* ---------- buttons ---------- */
.tj-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.tj-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--tj-radius-pill);
    font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.tj-btn-primary { background: var(--tj-accent); color: #fff; }
.tj-btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.tj-btn-secondary { background: transparent; color: var(--tj-accent); border-color: var(--tj-border); }
.tj-btn-secondary:hover { border-color: var(--tj-accent); background: var(--tj-accent-soft); text-decoration: none; }

/* ---------- entity detail grid ---------- */
.tj-detail-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--tj-border); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); overflow: hidden; margin: 0 0 18px; }
@media (min-width: 600px) { .tj-detail-grid { grid-template-columns: repeat(2, 1fr); } }
.tj-detail-grid > div { background: var(--tj-surface); padding: 11px 15px; display: flex; flex-direction: column; gap: 2px; }
.tj-detail-grid strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--tj-muted); font-weight: 700; }
.tj-detail-grid span { font-size: .96rem; color: var(--tj-text); }
.tj-detail-line { margin: 8px 0; font-size: .96rem; line-height: 1.55; }
.tj-crosssite-line { margin-top: 14px; }

/* ---------- FAQ ---------- */
.tj-faq-list { display: flex; flex-direction: column; gap: 8px; }
.tj-faq { border: 1px solid var(--tj-border); border-radius: var(--tj-radius-sm); background: var(--tj-surface); padding: 4px 16px; }
.tj-faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; font-family: var(--tj-display); font-size: 1.05rem; }
.tj-faq summary::-webkit-details-marker { color: var(--tj-accent); }
.tj-faq-answer { margin: 0 0 12px; color: var(--tj-text); line-height: 1.6; }

/* ---------- related grid + grid list ---------- */
.tj-related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .tj-related-grid { grid-template-columns: repeat(4, 1fr); } }
.tj-related-card { display: block; padding: 14px; text-align: center; border: 1px solid var(--tj-border); border-radius: var(--tj-radius-sm); background: var(--tj-surface); color: var(--tj-text); text-decoration: none; font-weight: 600; }
.tj-related-card:hover { border-color: var(--tj-accent); color: var(--tj-accent); }
.tj-grid-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 600px) { .tj-grid-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tj-grid-list { grid-template-columns: repeat(3, 1fr); } }
.tj-grid-list li { padding: 0; }
.tj-grid-list a { display: block; padding: 9px 12px; border-radius: var(--tj-radius-sm); color: var(--tj-text); text-decoration: none; border: 1px solid transparent; }
.tj-grid-list a:hover { background: var(--tj-accent-soft); border-color: var(--tj-border); }
.tj-list-sub { display: block; font-size: .8rem; color: var(--tj-muted); font-weight: 400; }
.tj-alpha-jumps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tj-alpha-jumps a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tj-border); border-radius: 50%; color: var(--tj-accent); font-weight: 600; font-size: .85rem; text-decoration: none; }
.tj-alpha-jumps a:hover { background: var(--tj-accent); color: #fff; }

/* ---------- itineraries ---------- */
.tj-itinerary { border: 1px solid var(--tj-border); border-radius: var(--tj-radius); background: var(--tj-surface); padding: 18px 20px; margin: 0 0 18px; }
.tj-itinerary-nav ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tj-itinerary-nav a { display: inline-block; padding: 6px 12px; border: 1px solid var(--tj-border); border-radius: var(--tj-radius-pill); color: var(--tj-accent); text-decoration: none; font-size: .88rem; }
.tj-itinerary-days { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tj-itinerary-day { border-left: 3px solid var(--tj-accent); padding-left: 14px; }
.tj-itinerary-day h4 { margin: 0 0 6px; }
.tj-itinerary-day dt { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tj-muted); margin-top: 6px; }
.tj-itinerary-day dd { margin: 0 0 4px; }

/* ---------- filter + sort widget ---------- */
.tj-filter-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tj-filter-search-input, .tj-filter-sort-select {
    padding: 9px 13px; border: 1px solid var(--tj-border); border-radius: var(--tj-radius);
    background: var(--tj-surface); color: var(--tj-text); font-family: var(--tj-body); font-size: .95rem;
}
.tj-filter-search-input:focus, .tj-filter-sort-select:focus { outline: none; border-color: var(--tj-accent); }

/* ---------- home: region / city cards + marquee ---------- */
.tj-home-hero { max-width: 760px; margin: 0 auto; padding: 56px 16px 12px; text-align: center; }
.tj-home-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
.tj-home-hero p { font-size: 1.18rem; color: var(--tj-muted); margin: 0 auto 22px; max-width: 600px; }
.tj-home-search { max-width: 480px; margin: 0 auto; }
.tj-home-search input { width: 100%; padding: 13px 20px; border: 1px solid var(--tj-border); border-radius: var(--tj-radius-pill); background: var(--tj-surface); color: var(--tj-text); font-size: 1rem; outline: none; }
.tj-home-search input:focus { border-color: var(--tj-accent); }
/* Override the 240px CLS-reservation min-height from the inline critical CSS:
   short strips (e.g. a single signature-wine card) otherwise leave a big gap. */
.tj-marquee { overflow: hidden; min-height: 0; }
.tj-marquee-track { display: flex; gap: 16px; overflow-x: auto; padding: 4px 16px 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; align-items: stretch; }
.tj-marquee-track::-webkit-scrollbar { height: 6px; }
.tj-marquee-track::-webkit-scrollbar-thumb { background: var(--tj-border); border-radius: 6px; }
.tj-marquee-group { display: flex; gap: 16px; }
.tj-marquee-group[aria-hidden="true"] { display: none; }
.tj-marquee .tj-dish { flex: 0 0 280px; scroll-snap-align: start; }
.tj-city-card { flex: 0 0 260px; scroll-snap-align: start; background: var(--tj-surface); border: 1px solid var(--tj-border); border-radius: var(--tj-radius); overflow: hidden; text-decoration: none; color: var(--tj-text); box-shadow: var(--tj-shadow); position: relative; }
.tj-city-card.is-coming-soon { opacity: .92; }
.tj-city-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--tj-accent-soft); display: block; }
.tj-city-card-body { padding: 14px 16px 16px; }
.tj-city-card-name { margin: 0 0 4px; font-size: 1.25rem; }
.tj-city-card-tagline { margin: 0; font-size: .9rem; color: var(--tj-muted); line-height: 1.5; }
.tj-city-card-badge { position: absolute; top: 10px; left: 10px; background: var(--tj-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--tj-radius-pill); letter-spacing: .03em; }
.tj-city-card-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--tj-accent) 0%, var(--tj-accent-ink) 100%); }
.tj-city-card-ph span { font-family: var(--tj-display); font-size: 3.5rem; font-weight: 700; color: rgba(255,255,255,.55); }

/* ---------- country chips ---------- */
.tj-country-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .tj-country-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tj-country-grid { grid-template-columns: repeat(5, 1fr); } }
.tj-country-chip { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--tj-border); border-radius: var(--tj-radius-pill); background: var(--tj-surface); color: var(--tj-text); text-decoration: none; font-weight: 500; }
.tj-country-chip:hover { border-color: var(--tj-accent); }
.tj-country-chip-flag { font-size: 1.2rem; }
.tj-country-chip-name { line-height: 1.2; }
.tj-crosssite { display: inline-block; }

/* ---------- entity map ---------- */
.tj-entity-map img { border-radius: var(--tj-radius); border: 1px solid var(--tj-border); width: 100%; }

/* ---------- verified badge ---------- */
.tj-verified-badge { font-size: .8rem; color: var(--tj-muted); display: inline-flex; align-items: center; gap: 4px; }
.tj-verified-badge a { color: inherit; }

/* ---------- breadcrumbs ---------- */
.tj-breadcrumbs { max-width: 1200px; margin: 0 auto; padding: 12px 16px 0; }
.tj-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .84rem; color: var(--tj-muted); }
.tj-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.tj-breadcrumbs a { color: var(--tj-muted); text-decoration: none; }
.tj-breadcrumbs a:hover { color: var(--tj-accent); }

/* ---------- footer ---------- */
.tj-footer { background: var(--tj-surface); border-top: 1px solid var(--tj-border); margin-top: 40px; }
.tj-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 20px 28px; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 768px) { .tj-footer-inner { grid-template-columns: 1.4fr 2.6fr; padding: 44px 24px 28px; gap: 40px; } }
.tj-footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
@media (min-width: 768px) { .tj-footer-nav { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.tj-footer-brand { min-width: 0; }
.tj-footer-sister { margin-top: 12px; }
.tj-footer-logo { font-family: var(--tj-display); font-weight: 700; font-size: 1.4rem; }
.tj-footer-tagline { color: var(--tj-muted); margin: 8px 0 0; }
.tj-footer-sister { font-size: .85rem; color: var(--tj-muted); }
.tj-footer-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tj-muted); margin: 0 0 10px; }
.tj-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tj-footer-col a { color: var(--tj-text); text-decoration: none; font-size: .9rem; }
.tj-footer-col a:hover { color: var(--tj-accent); }
.tj-footer-bottom { border-top: 1px solid var(--tj-border); text-align: center; padding: 16px; font-size: .82rem; color: var(--tj-muted); }

/* ---------- bottom nav (mobile) ---------- */
.tj-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tj-mobile-bottom-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--tj-bg); border-top: 1px solid var(--tj-border); display: flex; z-index: 55; }
.tj-bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--tj-muted); text-decoration: none; font-size: .68rem; }
.tj-bn-item span { line-height: 1; }
.tj-bn-item:hover, .tj-bn-item:focus { color: var(--tj-accent); }
@media (min-width: 768px) { .tj-bottom-nav { display: none; } }

/* ---------- skip link + sr-only ---------- */
.tj-skip { position: absolute; left: -9999px; }
.tj-skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--tj-accent); color: #fff; padding: 10px 16px; border-radius: var(--tj-radius-sm); }
.tj-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- ad slots: hidden until monetised (no empty boxes) ---------- */
.tj-ad, .tj-ad-mount, [data-slot] { display: none !important; }

/* ---------- prose (chrome/about/legal) ---------- */
.tj-prose { max-width: 760px; margin: 0 auto; }
.tj-prose h2 { margin-top: 1.6em; }
.tj-prose ul { padding-left: 1.2em; }
.tj-prose li { margin: .35em 0; }
