/* per-pub.css — styles for per-pub pages and county hub pages only.
   Do NOT modify style.css. This file is linked only on per-pub and county hub pages. */

/* ------------------------------------------------------------------ pub hero */
.pub-hero {
    background: var(--stout);
    color: var(--cream);
    padding: 56px 24px 48px;
}
.pub-hero h1 {
    color: var(--cream);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 0.3em;
}
.pub-hero .pub-address {
    color: rgba(245,236,214,0.75);
    font-size: 1rem;
    margin-bottom: 1em;
}
.pub-hero .crumbs a { color: rgba(245,236,214,0.65); }
.pub-hero .crumbs { color: rgba(245,236,214,0.5); font-size:0.85rem; margin-bottom:1.2em; }

/* ------------------------------------------------------------------ pub tags */
.pub-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:0.8em; }
.pub-tag {
    background: rgba(245,236,214,0.12);
    color: rgba(245,236,214,0.8);
    border: 1px solid rgba(245,236,214,0.2);
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 999px;
}
.pub-tag.heritage {
    background: var(--brass);
    color: var(--stout);
    border-color: var(--brass);
    font-weight: 600;
}
.pub-tag.legendary {
    background: var(--green);
    color: var(--cream);
    border-color: var(--green);
    font-weight: 600;
}

/* ------------------------------------------------------------------ pub layout grid */
.pub-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    margin-top: 2em;
}
@media (max-width: 800px) {
    .pub-layout { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ pub details table */
.pub-details {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}
.pub-details th {
    text-align: left;
    padding: 10px 14px 10px 0;
    color: var(--ink-soft);
    font-weight: 500;
    width: 140px;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.pub-details td {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

/* ------------------------------------------------------------------ leaflet map */
.pub-map-wrap {
    margin: 1.5em 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
}
#pub-map {
    height: 320px;
    width: 100%;
}
.map-caption {
    font-size: 0.8rem;
    color: var(--ink-soft);
    padding: 6px 10px;
    background: var(--cream-warm);
    text-align: center;
}

/* ------------------------------------------------------------------ claim aside */
.claim-aside {
    position: sticky;
    top: 20px;
}
.claim-aside .card {
    padding: 24px 22px;
}
.claim-aside h4 {
    margin-bottom: 0.5em;
}
.claim-aside p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 1em;
}

/* ------------------------------------------------------------------ tier-1 honest callout */
.listing-callout {
    background: var(--cream-warm);
    border-left: 3px solid var(--brass);
    border-radius: 0 8px 8px 0;
    padding: 18px 22px;
    margin: 1.5em 0;
    font-size: 0.95rem;
}
.listing-callout p { margin-bottom: 0.5em; }

/* ------------------------------------------------------------------ heritage section (T3) */
.heritage-section {
    background: var(--cream-warm);
    border-radius: 10px;
    padding: 28px 30px;
    margin: 2em 0;
    border: 1px solid var(--line);
}
.heritage-section .heritage-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brass-deep);
    font-weight: 600;
    margin-bottom: 0.6em;
    display: block;
}
.heritage-section h3 {
    margin-bottom: 0.6em;
    font-size: 1.15rem;
}
.heritage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0.8em 0 1em;
    font-size: 0.88rem;
    color: var(--ink-soft);
}
.heritage-meta span {
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 3px 10px;
    border-radius: 6px;
}
.niah-rating {
    font-weight: 600;
    color: var(--brass-deep);
}
.niah-rating.national {
    color: var(--green);
}
.heritage-section .niah-link {
    font-size: 0.88rem;
    color: var(--brass-deep);
    font-weight: 500;
}

/* ------------------------------------------------------------------ wikipedia section (T4) */
.wikipedia-section {
    background: linear-gradient(135deg, rgba(45,90,61,0.06) 0%, rgba(176,141,87,0.06) 100%);
    border-radius: 10px;
    padding: 24px 28px;
    margin: 2em 0;
    border: 1px solid rgba(45,90,61,0.15);
}
.wikipedia-section .wiki-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.5em;
    display: block;
}
.wikipedia-section h3 {
    margin-bottom: 0.6em;
    font-size: 1.1rem;
}

/* ------------------------------------------------------------------ county hub pub list */
.pub-list-section {
    margin-top: 2em;
}
.pub-count-lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 2em;
}
.pub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pub-list-item {
    border-bottom: 1px solid var(--line);
    padding: 0;
}
.pub-list-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.1s;
    gap: 12px;
}
.pub-list-item a:hover {
    background: var(--cream-warm);
    padding-left: 12px;
    margin-left: -8px;
    padding-right: 12px;
}
.pub-list-name {
    font-weight: 500;
    font-size: 0.97rem;
    flex: 1;
}
.pub-list-addr {
    font-size: 0.85rem;
    color: var(--ink-soft);
    flex: 1;
    text-align: right;
}
.pub-list-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pub-list-badge.heritage { background: var(--brass); color: var(--stout); font-weight: 600; }
.pub-list-badge.legendary { background: var(--green); color: var(--cream); font-weight: 600; }

/* ------------------------------------------------------------------ county town breakdown */
.town-breakdown {
    margin: 1.5em 0 2em;
    padding: 18px 22px;
    background: var(--cream-warm);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.town-breakdown strong { color: var(--ink); }

/* ------------------------------------------------------------------ heritage + wiki callouts on county hub */
.county-callout {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 2px solid var(--line);
}
.county-callout h2 { margin-bottom: 0.8em; }
.county-callout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 1em;
}
.county-callout-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: 0.9rem;
}
.county-callout-card a {
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.county-callout-card .rating-badge {
    font-size: 0.75rem;
    color: var(--brass-deep);
    font-weight: 600;
}

/* ------------------------------------------------------------------ wall section (dormant) */
/* wall-section has hidden attribute — styles here are for when it becomes active */
.wall-section {
    padding: 40px 24px;
    border-top: 1px solid var(--line);
    background: var(--cream-warm);
}
.wall-coming-soon {
    color: var(--ink-soft);
    font-style: italic;
}

/* ------------------------------------------------------------------ Google Places visiting block */
.visiting-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 2em;
    background: var(--cream-warm);
    overflow: hidden;  /* keep hero-photo corners rounded */
}

.visiting-photo {
    position: relative;
    /* Extend hero photo to card edges */
    margin: -22px -26px 18px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}
.visiting-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.visiting-photo .photo-credit {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.visiting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}
.rating-display { display: inline-flex; align-items: baseline; gap: 6px; }
.rating-display .rating-link { display: inline-flex; align-items: baseline; gap: 6px; color: inherit; text-decoration: none; }
.rating-display .rating-link:hover .rating-value { text-decoration: underline; }
.rating-display .stars { color: #d4a23c; font-size: 1.05rem; letter-spacing: 1px; }
.rating-display .rating-value { font-weight: 600; color: var(--ink); }
.rating-display .rating-count { color: var(--ink-soft); font-size: 0.88rem; }

.open-status {
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 500;
    background: var(--cream);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.open-status.open { background: #eaf7ef; color: #1a7340; border-color: #9dd5b5; }
.open-status.closed { background: #fdebec; color: #a63341; border-color: #f5c2ca; }

.editorial-summary {
    border-left: 3px solid #d4a23c;
    padding: 4px 14px;
    margin: 14px 0;
    font-style: italic;
    color: var(--ink);
    font-size: 0.95rem;
    background: transparent;
}
.editorial-summary p { margin: 0; }
.editorial-summary cite {
    display: block;
    font-size: 0.78rem;
    font-style: normal;
    color: var(--ink-soft);
    margin-top: 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.visiting-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 16px 0 8px;
}
@media (max-width: 640px) {
    .visiting-contact-grid { grid-template-columns: 1fr; gap: 16px; }
}

.contact-col { display: flex; flex-direction: column; }
.contact-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
}
.contact-action:last-child { border-bottom: none; }
.contact-action:hover { color: var(--brass-deep); }
.contact-action .contact-icon { font-size: 1.05rem; width: 22px; flex-shrink: 0; }

.hours-col h4.hours-title {
    margin: 0 0 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ink-soft);
    font-weight: 600;
}
.hours-table { width: 100%; font-size: 0.9rem; border-collapse: collapse; }
.hours-table th {
    text-align: left;
    font-weight: 500;
    padding: 4px 10px 4px 0;
    color: var(--ink-soft);
    width: 50px;
    border: none;
    background: transparent;
}
.hours-table td { padding: 4px 0; border: none; background: transparent; }
.hours-table tr.today th,
.hours-table tr.today td { font-weight: 600; color: var(--ink); }

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.social-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
    background: var(--cream);
    transition: all 0.15s ease;
}
.social-icon:hover {
    border-color: var(--brass);
    color: var(--brass-deep);
    background: var(--cream-warm);
    transform: translateY(-1px);
}
.social-icon svg { width: 18px; height: 18px; }

.visiting-source {
    font-size: 0.76rem;
    color: var(--ink-soft);
    margin-top: 14px;
    margin-bottom: 0;
    text-align: right;
}
.visiting-source a { color: var(--ink-soft); text-decoration: underline; }

.places-closed-banner {
    background: #fdebec;
    color: #8a2331;
    border: 1px solid #f5c2ca;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}
.places-closed-banner.places-closed-temp {
    background: #fef9ec;
    color: #7a5800;
    border-color: #f0d070;
}
.places-closed-banner strong { display: block; margin-bottom: 4px; }
.places-closed-banner a { color: inherit; font-weight: 600; }

/* ------------------------------------------------------------------ Folklore band */
.folklore-band {
    margin: 0 0 2em;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.folklore-band .fk-panel {
    background: #fffaf0;
    border: 1px solid rgba(184,133,66,0.18);
    border-left: 3px solid #b88542;
    border-radius: 4px;
    padding: 18px 22px 16px;
}
.folklore-band .fk-panel p {
    margin: 0 0 0.6em;
    line-height: 1.65;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.02rem;
    color: var(--ink);
}
.folklore-band .fk-panel p:last-child { margin-bottom: 0; }
.folklore-band .fk-panel em { font-style: italic; }

.folklore-band .fk-label {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #95692c;
    margin-bottom: 8px;
}

/* Lead panel (establishment paragraph) — slightly bigger, no left rule */
.folklore-band .fk-lead {
    border-left-width: 0;
    background: #fcf6e6;
    padding-top: 22px;
    padding-bottom: 20px;
}
.folklore-band .fk-lead p {
    font-size: 1.08rem;
    line-height: 1.7;
}
.folklore-band .fk-lead p:first-of-type {
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.8em;
}

/* Cultural panels (literary / song / screen / folklore / military_history) */
.folklore-band .fk-cultural { border-left-color: #6f1f1f; }
.folklore-band .fk-cultural .fk-label { color: #6f1f1f; }
.folklore-band .fk-cultural p {
    font-style: italic;
    border-left: 0;
}

/* Physical panel */
.folklore-band .fk-physical { border-left-color: #5a6e4f; }
.folklore-band .fk-physical .fk-label { color: #4d5d44; }

/* Practical panel */
.folklore-band .fk-practical { border-left-color: #b56144; }
.folklore-band .fk-practical .fk-label { color: #94492f; }

/* Regulars panel */
.folklore-band .fk-regulars { border-left-color: #95692c; }

/* Ghost panel — distinctive treatment */
.folklore-band .fk-ghost {
    background: #f4ecda;
    border-left-color: #4a3a26;
}
.folklore-band .fk-ghost .fk-label { color: #4a3a26; }
.folklore-band .fk-ghost p {
    font-style: italic;
}

/* Reputation as an aside (no panel chrome, just italic blockquote-ish) */
.folklore-band .fk-rep {
    margin: 4px 0 0;
    padding: 8px 22px;
    border-left: 3px solid #b88542;
    background: transparent;
}
.folklore-band .fk-rep p {
    margin: 0;
    font-style: italic;
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* Banners (closure/threat) */
.folklore-band .fk-banner {
    background: #fdebec;
    border: 1px solid #f5c2ca;
    border-left: 3px solid #a63341;
    border-radius: 4px;
    padding: 16px 20px;
}
.folklore-band .fk-banner.fk-banner-threat {
    background: #fef9ec;
    border-color: #f0d070;
    border-left-color: #b88542;
}
.folklore-band .fk-banner-tag {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #8a2331;
    margin-bottom: 6px;
}
.folklore-band .fk-banner-threat .fk-banner-tag { color: #7a5800; }
.folklore-band .fk-banner p {
    margin: 0;
    color: #5a1d27;
    line-height: 1.6;
}
.folklore-band .fk-banner-threat p { color: #4a3500; }

@media (max-width: 600px) {
    .folklore-band .fk-panel { padding: 14px 16px; }
    .folklore-band .fk-lead p:first-of-type { font-size: 1.08rem; }
    .folklore-band .fk-rep { padding: 4px 16px; }
}

/* ----- notable_events: news-of-record timeline ----- */
.folklore-band .fk-events {
    border-left-color: #4a5566;
    background: #f6f3ec;
}
.folklore-band .fk-events .fk-label { color: #36465a; }
.folklore-band .ev-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}
.folklore-band .ev-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(74,85,102,0.15);
    align-items: baseline;
}
.folklore-band .ev-item:first-child { border-top: none; padding-top: 4px; }
.folklore-band .ev-date {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #36465a;
    text-align: right;
    padding-top: 2px;
}
.folklore-band .ev-body { min-width: 0; }
.folklore-band .ev-headline {
    margin: 0 0 4px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--ink);
    font-style: normal;
}
.folklore-band .ev-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.folklore-band .ev-meta cite { font-style: italic; }
.folklore-band .ev-meta cite a { color: inherit; border-bottom: 1px dotted; text-decoration: none; }
.folklore-band .ev-cat {
    display: inline-block;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid currentColor;
}
.folklore-band .ev-cat-licensing  { color: #6e5a40; }
.folklore-band .ev-cat-criminal   { color: #8a2331; background: rgba(138,35,49,0.06); }
.folklore-band .ev-cat-civil      { color: #4a5566; }
.folklore-band .ev-cat-health     { color: #7a5800; }
.folklore-band .ev-cat-commercial { color: #36465a; }
.folklore-band .ev-cat-military   { color: #5a4628; }
.folklore-band .ev-cat-political  { color: #6f1f1f; }
/* Severity stripe: a thin bar to the left of high-severity items */
.folklore-band .ev-item.ev-sev-high {
    box-shadow: inset 3px 0 0 #a63341;
    padding-left: 10px;
}
.folklore-band .ev-item.ev-sev-medium {
    box-shadow: inset 3px 0 0 rgba(184,133,66,0.4);
    padding-left: 10px;
}
@media (max-width: 600px) {
    .folklore-band .ev-item { grid-template-columns: 56px 1fr; gap: 10px; }
    .folklore-band .ev-date { font-size: 0.72rem; }
}
