/* City page – scoped to .city-page to beat global site CSS */
.city-page {
    --city-page-sticky-top: 72px;
    background: #fff;
    color: #222;
    font-family: 'Karla', sans-serif;
    overflow-x: clip;
    max-width: 100%;
}

.city-page-container,
.city-page-body__container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

@media screen and (min-width: 1024px) {
    .city-page-container,
    .city-page-body__container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media screen and (min-width: 1600px) {
    .city-page-container,
    .city-page-body__container {
        max-width: 1440px;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Breadcrumb */
.city-page-breadcrumb {
    background: #fafafa;
    border-bottom: 1px solid #ececec;
    padding: 11px 0;
}

.city-page-breadcrumb .city-page-container {
    padding-top: 0;
    padding-bottom: 0;
}

.city-page-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.city-page-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
}

.city-page-breadcrumb li + li::before {
    content: '/';
    color: #ccc;
}

.city-page-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.city-page-breadcrumb a:hover {
    color: #111;
}

.city-page-breadcrumb li:last-child {
    color: #111;
}

/* Hero */
.city-page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #1a1a1a;
}

.city-page-hero__media {
    position: absolute;
    inset: 0;
}

.city-page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.city-page-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 44px;
    padding-bottom: 36px;
}

.city-page-hero__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.city-page-hero__content h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: 760px;
}

.city-page-hero__subtitle {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.98rem;
    line-height: 1.6;
}

.city-page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.city-page-hero__pill {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
}

/* Body layout */
.city-page-body {
    background: #fff;
    padding: 0;
}

.city-page-body__container {
    padding-top: 28px;
    padding-bottom: 48px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 24px;
    align-items: stretch;
}

.city-page-body__main {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.city-page-panel {
    border: 1px solid #e5e5e5;
    background: #fff;
    max-width: 100%;
    overflow-x: clip;
}

.city-page .city-page-content {
    max-width: 100%;
    overflow-x: clip;
}

/* Sidebar column stretches to match left content height for sticky scroll */
.city-page .city-page-retailers--sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: 100%;
}

.city-page-panel__body {
    padding: 0;
}

.city-page-panel__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 20px;
    background: #f7f7f7;
    border-bottom: 1px solid #ececec;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}

.city-page-panel__meta-row strong {
    color: #111;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 10px;
    margin-right: 6px;
}

/* CMS content – override WYSIWYG / inline styles */
.city-page .city-page-content {
    padding: 20px 20px 22px;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
}

.city-page .city-page-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.city-page .city-page-content > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.city-page .city-page-content p {
    margin: 0 0 0.75em !important;
    padding: 0 !important;
    color: #444 !important;
    font-size: inherit !important;
    line-height: 1.7 !important;
}

.city-page .city-page-content p:last-child {
    margin-bottom: 0 !important;
}

.city-page .city-page-content strong,
.city-page .city-page-content b {
    color: #111;
    font-weight: 600;
}

.city-page .city-page-content h1,
.city-page .city-page-content h2,
.city-page .city-page-content h3,
.city-page .city-page-content h4 {
    margin: 1.1em 0 0.5em !important;
    padding: 0 !important;
    color: #111 !important;
    font-weight: 500 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35 !important;
}

.city-page .city-page-content h2 {
    font-size: 1rem !important;
}

.city-page .city-page-content h3 {
    font-size: 0.95rem !important;
}

.city-page .city-page-content > h2:first-child,
.city-page .city-page-content > p:first-child strong {
    margin-top: 0 !important;
}

.city-page .city-page-content ul,
.city-page .city-page-content ol {
    margin: 0 0 0.75em !important;
    padding-left: 1.2em !important;
}

.city-page .city-page-content li {
    margin-bottom: 0.25em;
    color: #444;
}

.city-page .city-page-content a {
    color: #111;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.city-page .city-page-content img {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* Scroll wrapper added around CMS tables in formattedContent() */
.city-page .city-page-table-scroll {
    width: 100%;
    max-width: 100%;
    margin: 0.75em 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.city-page .city-page-table-scroll:first-child {
    margin-top: 0;
}

.city-page .city-page-table-scroll table {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-collapse: collapse !important;
    font-size: 0.85rem !important;
    table-layout: fixed !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.city-page .city-page-table-scroll table td,
.city-page .city-page-table-scroll table th,
.city-page .city-page-content table td,
.city-page .city-page-content table th {
    padding: 9px 10px !important;
    border: 1px solid #e5e5e5 !important;
    background: #fff !important;
    color: #333 !important;
    vertical-align: top !important;
    width: auto !important;
    min-width: 0 !important;
    font-size: inherit !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    hyphens: auto;
}

.city-page .city-page-table-scroll table tr:first-child td,
.city-page .city-page-table-scroll table tr:first-child th,
.city-page .city-page-table-scroll table thead td,
.city-page .city-page-table-scroll table thead th,
.city-page .city-page-content table tr:first-child td,
.city-page .city-page-content table tr:first-child th,
.city-page .city-page-content table thead td,
.city-page .city-page-content table thead th {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

.city-page .city-page-table-scroll table tr:first-child td p,
.city-page .city-page-table-scroll table tr:first-child td strong,
.city-page .city-page-table-scroll table thead td strong,
.city-page .city-page-content table tr:first-child td p,
.city-page .city-page-content table tr:first-child td strong,
.city-page .city-page-content table thead td strong {
    color: #fff !important;
    margin: 0 !important;
}

.city-page .city-page-table-scroll table tr:nth-child(even) td,
.city-page .city-page-content table tr:nth-child(even) td {
    background: #fafafa !important;
}

.city-page .city-page-table-scroll table td p,
.city-page .city-page-content table td p {
    margin: 0 !important;
}

/* Sidebar – sticks while scrolling left content, stops when left column ends */
.city-page .city-page-retailers__sticky {
    position: -webkit-sticky;
    position: sticky;
    top: var(--city-page-sticky-top, 72px);
    align-self: flex-start;
    width: 100%;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.city-page .city-page-retailers__sticky::-webkit-scrollbar {
    width: 4px;
}

.city-page .city-page-retailers__sticky::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 999px;
}

.city-page-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid #ececec;
    background: #f7f7f7;
}

.city-page-sidebar-head h2 {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111;
}

.city-page-sidebar-head__count {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.city-page .city-page-store-grid {
    display: block !important;
}

.city-page .city-page-store-card {
    display: block;
    padding: 16px 18px;
    border-bottom: 1px solid #ececec;
    background: #fff;
    transition: background 0.15s ease;
}

.city-page .city-page-store-card:last-child {
    border-bottom: 0;
}

.city-page .city-page-store-card:hover {
    background: #fafafa;
}

.city-page .city-page-store-card__head {
    margin-bottom: 10px;
}

.city-page .city-page-store-card__title {
    margin: 0 0 8px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
    line-height: 1.35;
}

.city-page .city-page-store-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.city-page .city-page-store-card__tag {
    padding: 2px 7px;
    background: #f0f0f0;
    color: #666;
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.city-page .city-page-store-card__body {
    display: grid;
    gap: 8px;
}

.city-page .city-page-store-card__row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.city-page .city-page-store-card__icon {
    flex: 0 0 14px;
    width: 14px;
    margin-top: 3px;
    color: #999;
}

.city-page .city-page-store-card__icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.city-page .city-page-store-card__line {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #333;
}

.city-page .city-page-store-card__line--muted {
    color: #888;
}

.city-page .city-page-store-card__link {
    font-size: 0.82rem;
    color: #111;
    text-decoration: none;
    word-break: break-word;
}

.city-page .city-page-store-card__link:hover {
    text-decoration: underline;
}

.city-page .city-page-store-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.city-page .city-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 8px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s ease;
}

.city-page .city-page-btn--primary {
    background: #111;
    border: 1px solid #111;
    color: #fff !important;
}

.city-page .city-page-btn--primary:hover {
    background: #333;
    border-color: #333;
    color: #fff !important;
}

.city-page .city-page-btn--outline {
    background: #fff;
    border: 1px solid #ccc;
    color: #111 !important;
}

.city-page .city-page-btn--outline:hover {
    border-color: #111;
}

.city-page .city-page-empty {
    padding: 32px 18px;
    text-align: center;
}

.city-page .city-page-empty h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.city-page .city-page-empty p {
    margin: 0 auto 16px;
    max-width: 260px;
    font-size: 0.88rem;
    color: #666;
}

/* Responsive */
@media (min-width: 992px) {
    .city-page-body {
        overflow: visible;
    }

    .city-page-body__container {
        overflow: visible;
    }
}

@media (max-width: 991px) {
    .city-page-body__container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .city-page .city-page-retailers__sticky {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .city-page .city-page-content {
        overflow-x: visible;
    }

    .city-page .city-page-table-scroll {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: thin;
        scrollbar-color: #999 #f0f0f0;
        border: 1px solid #ececec;
        background: #fafafa;
    }

    .city-page .city-page-table-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .city-page .city-page-table-scroll::-webkit-scrollbar-track {
        background: #f0f0f0;
    }

    .city-page .city-page-table-scroll::-webkit-scrollbar-thumb {
        background: #999;
        border-radius: 999px;
    }

    .city-page .city-page-table-scroll table {
        width: max-content !important;
        min-width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
        font-size: 0.78rem !important;
        background: #fff;
    }

    .city-page .city-page-table-scroll table td,
    .city-page .city-page-table-scroll table th {
        white-space: nowrap;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: manual;
        min-width: 72px;
    }
}

@media (max-width: 767px) {
    .city-page-hero {
        min-height: 300px;
    }

    .city-page-hero__content {
        padding-top: 32px;
        padding-bottom: 26px;
    }

    .city-page-body__container {
        padding-top: 20px;
        padding-bottom: 36px;
    }

    .city-page-panel__meta-row {
        flex-direction: column;
        gap: 6px;
        padding: 12px 16px;
    }

    .city-page .city-page-content {
        padding: 16px;
    }

    .city-page .city-page-store-card__actions {
        grid-template-columns: 1fr;
    }

    .city-page .city-page-btn {
        width: 100%;
    }
}
