/* UI polish informed by unslop, Damir Sokolovsky, CC BY 4.0.
   https://github.com/heydamir/unslop -- adapted for this merchant directory. */
:root {
    --cbp-ink: #202725;
    --cbp-muted: #59615f;
    --cbp-line: #dce1df;
    --cbp-bg: #fafbfb;
    --cbp-panel: #fff;
    --cbp-accent: #b9212b;
    --cbp-accent-dark: #82161f;
}
.cb-directory {
    --cb-ink: var(--cbp-ink);
    --cb-muted: var(--cbp-muted);
    --cb-line: var(--cbp-line);
    --cb-bg: var(--cbp-bg);
    --cb-panel: #fff;
    --cb-accent: var(--cbp-accent);
    --cb-accent-dark: var(--cbp-accent-dark);
}
body { background: var(--cbp-bg); }
body, input, select, textarea, button { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.cbp-container, .cb-container { width: min(1200px, calc(100% - 48px)); }
.cbp-directory-home h1, .cb-directory h1 { font-family: "Trebuchet MS", system-ui, sans-serif; font-size: 40px; line-height: 1.15; font-weight: 600; }
.cbp-directory-home h2, .cb-directory h2 { font-weight: 600; }
.cbp-directory-home h3, .cb-directory h3 { font-weight: 600; }
.cbp-directory-home *, .cb-directory * { letter-spacing: 0; }
.cbp-directory-home p, .cb-directory p, .cbp-directory-home a, .cb-directory a { overflow-wrap: anywhere; }
.cbp-skip-link, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cbp-skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip-path: none; z-index: 10001; padding: 12px 16px; color: #fff; background: var(--cbp-accent-dark); }
main, #fotos, #reportar-problema { scroll-margin-top: 96px; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--cbp-accent-dark); outline-offset: 3px; }
.cbp-site-header { background: #fff; backdrop-filter: none; }
.cbp-header-inner { min-height: 80px; gap: 16px; }
.cbp-brand { gap: 8px; }
.cbp-brand-mark { width: 56px; height: 48px; flex-basis: 56px; }
.cbp-brand-copy strong { font-size: 24px; font-weight: 600; }
.cbp-brand-copy span { font-size: 11px; font-weight: 400; }
.cbp-nav { gap: 0; font-weight: 500; }
.cbp-nav a { padding: 12px; white-space: nowrap; }
.cbp-nav-toggle { display: none; min-height: 44px; padding: 8px 16px; border: 1px solid var(--cbp-line); border-radius: 6px; background: #fff; color: var(--cbp-ink); font: inherit; cursor: pointer; }
.cbp-button, .cb-button, .cbp-search-shell button { font-weight: 600; border-radius: 6px; }
.cbp-hero { padding: 40px 0 24px; background: #fff; }
.cbp-hero-grid { display: block; }
.cbp-kicker, .cb-kicker, .cbp-chip, .cb-chip { text-transform: none; letter-spacing: 0; font-weight: 500; }
.cbp-kicker { margin-bottom: 8px; }
.cbp-lead { max-width: 760px; margin-top: 12px; font-size: 18px; line-height: 1.5; }
.cbp-search-shell { max-width: none; margin-top: 24px; }
.chinobarrio-business-search, .cbp-search-shell .chinobarrio-business-search {
    display: grid; grid-template-columns: minmax(160px, 1.6fr) minmax(140px, 1fr) minmax(120px, .8fr) auto;
    align-items: end; gap: 12px; max-width: none; margin-top: 24px;
}
.cbp-search-shell .chinobarrio-business-search { margin-top: 0; }
.cb-search-field { display: grid; min-width: 0; gap: 8px; font-size: 13px; color: var(--cbp-muted); }
.cb-search-field input, .cb-search-field select, .cbp-search-shell .cb-search-field input {
    box-sizing: border-box; width: 100%; min-width: 0; height: 48px; border: 1px solid #bfc8c3; border-radius: 6px;
    padding: 12px; color: var(--cbp-ink); background: #fff; font: inherit; font-size: 16px;
}
.chinobarrio-business-search > button { height: 48px; min-width: 104px; cursor: pointer; }
.cbp-hero-stats { gap: 8px 24px; margin-top: 16px; }
.cbp-hero-stats span { min-height: 0; border: 0; border-radius: 0; padding: 0; font-size: 13px; background: transparent; font-variant-numeric: tabular-nums; }
.cbp-quick-links { gap: 8px 24px; margin-top: 20px; }
.cbp-quick-links a { border: 0; border-radius: 0; padding: 4px 0; background: none; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.cbp-hero-panel { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border: 0; border-top: 1px solid var(--cbp-line); border-radius: 0; background: none; }
.cbp-hero-panel > a { flex: 0 0 112px; }
.cbp-hero-panel img { width: 112px; height: 84px; aspect-ratio: 4 / 3; border-radius: 4px; }
.cbp-hero-panel-content { min-width: 0; padding: 0; }
.cbp-hero-panel-content h2 { font-size: 20px; line-height: 1.25; }
.cbp-hero-panel-content p { margin-bottom: 4px; }
.cbp-inline-link { font-weight: 600; text-underline-offset: 4px; }
.cbp-inline-link:hover { text-decoration: underline; }
.cbp-section { padding: 32px 0; }
.cbp-section-header { gap: 16px; margin-bottom: 20px; }
.cbp-section-header h2 { font-size: 26px; line-height: 1.25; }
.cbp-section-header p { margin-top: 8px; max-width: 780px; font-size: 15px; }
.cbp-guide-section, .cbp-restaurant-section { background: var(--cbp-bg); }
.cbp-guide-grid { gap: 24px; }
.cbp-guide-item { border: 0; border-top: 2px solid var(--cbp-line); border-radius: 0; padding: 16px 0 0; background: transparent; }
.cbp-guide-item h3 { font-size: 18px; line-height: 1.3; }
.cbp-guide-item a { font-weight: 600; }
.cbp-category { border: 0; border-bottom: 1px solid var(--cbp-line); border-radius: 0; padding: 12px 0; min-height: 72px; background: none; }
.cbp-category strong { font-weight: 600; }
.cbp-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cbp-business-card > a { position: relative; flex: 0 0 auto; height: auto; aspect-ratio: 4 / 3; background: #edf1ef; }
.cbp-business-card > a > img { position: absolute; inset: 0; }
.cbp-card-body { min-height: 0; padding: 20px; }
.cbp-card-body h3 { min-height: 0; font-size: 20px; }
.cbp-card-body > .cbp-muted { min-height: 0; }
.cbp-card-body h3 a { -webkit-line-clamp: 3; }
.cbp-card-location { margin: 8px 0 0; color: var(--cbp-muted); font-size: 13px; line-height: 1.5; }
.cbp-card-meta { margin-top: 8px; color: #485e54; font-weight: 500; font-variant-numeric: tabular-nums; }
.cbp-card-actions { padding-top: 16px; }
.cbp-card-actions a { font-weight: 600; background: #fff; border-color: var(--cbp-line); }
.cbp-photo-badge { left: 8px; bottom: 8px; border-radius: 4px; font-weight: 500; }
.cbp-restaurant-grid { gap: 20px; }
.cbp-restaurant-card { grid-template-columns: 136px minmax(0, 1fr); gap: 16px; height: auto; min-height: 204px; padding: 16px; }
.cbp-restaurant-media { width: 136px; height: auto; aspect-ratio: 1; }
.cbp-restaurant-card > div { overflow: visible; }
.cbp-restaurant-card > div > .cbp-muted { white-space: normal; overflow: visible; }
.cbp-restaurant-actions { margin-top: auto; padding-top: 12px; }
.cbp-restaurant-actions a { padding: 8px 12px; font-weight: 600; }
.cbp-latest-guide-card > div { padding: 20px; }
.cbp-latest-guide-card h3 { margin-top: 4px; font-size: 20px; line-height: 1.35; }
.cbp-seo-copy { display: block; max-width: 1200px; padding: 32px 0; }
.cbp-seo-copy > div { max-width: 800px; }
.cbp-seo-copy h2 { font-size: 26px; }
.cbp-footer-brand { font-weight: 600; }
.cbp-back-to-top { box-shadow: none; }
.cb-archive-hero, .cb-single-hero { padding: 32px 0; background: #fff; }
.cb-archive-body { padding: 24px 0 48px; }
.cb-results-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 14px; color: var(--cb-muted); }
.cb-results-summary p { margin: 0; font-variant-numeric: tabular-nums; }
.cb-results-summary a { text-underline-offset: 4px; }
.cb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.cb-card { display: flex; flex-direction: column; }
.cb-card-media { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #edf1ef; }
.cb-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cb-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.cb-card h2 { font-size: 21px; line-height: 1.3; }
.cb-card .cb-muted { line-height: 1.5; }
.cb-business-focus, .cb-rating { font-weight: 500; }
.cb-rating { color: #485e54; font-variant-numeric: tabular-nums; }
.cb-card-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 600; }
.cb-card-actions a { color: var(--cb-accent-dark); text-underline-offset: 4px; padding: 4px 0; }
.cb-pagination { margin-top: 32px; }
.cb-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cb-pagination .page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px; border: 1px solid var(--cb-line); border-radius: 4px; background: #fff; text-decoration: none; }
.cb-pagination .current { color: #fff; background: var(--cb-accent-dark); }
.cb-single-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cb-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; color: var(--cb-muted); font-size: 13px; }
.cb-breadcrumb a { text-underline-offset: 4px; }
.cb-single-copy { padding-top: 8px; }
.cb-single-copy h1 { font-size: 36px; }
.cb-single-copy .cb-lead { font-size: 16px; }
.cb-business-focus-large { margin-top: 16px; font-size: 19px; font-weight: 400; }
.cb-actions { gap: 12px; margin-top: 24px; }
.cb-contact-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; font-size: 14px; }
.cb-contact-links a { color: var(--cb-accent-dark); text-underline-offset: 4px; padding: 4px 0; }
.cb-single-photos { min-width: 0; }
.cb-single-media { position: relative; order: initial; background: #edf1ef; border-radius: 6px; }
.cb-single-media > .cb-main-photo-link { position: absolute; inset: 0; }
.cb-hero-gallery { gap: 8px; margin-top: 8px; }
.cb-hero-gallery a { aspect-ratio: 4 / 3; background: #edf1ef; }
.cb-detail-grid { grid-template-columns: minmax(0, 1fr) 304px; gap: 48px; padding: 40px 0 56px; align-items: start; }
.cb-detail-main, .cb-facts { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.cb-facts { padding-left: 24px; border-left: 1px solid var(--cb-line); }
.cb-facts p { padding: 16px 0; }
.cb-facts a { text-underline-offset: 4px; }
.cb-detail-main h2, .cb-facts h2 { font-size: 23px; }
.cb-content { color: var(--cb-ink); line-height: 1.7; }
.cb-content img { max-width: 100%; height: auto; }
.cb-gallery-grid a:hover img, .cb-gallery-grid a:focus-visible img { transform: none; }
.cb-gallery-grid a { background: #edf1ef; }
.cb-gallery { margin-top: 32px; padding-top: 24px; }
.cb-report-box { margin-top: 32px; padding-top: 24px; }
.cb-report-form { gap: 16px; }
.cb-report-form input, .cb-report-form select, .cb-report-form textarea { font-size: 16px; }
.cb-lightbox [data-cb-lightbox-close] { border-radius: 6px; }
@media (max-width: 1040px) {
    .cbp-header-inner { flex-wrap: wrap; }
    .cbp-menu-ready .cbp-nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
    .cbp-menu-ready .cbp-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 16px; }
    .cbp-menu-ready .cbp-nav-toggle[aria-expanded="true"] + .cbp-nav { display: flex; }
    .cbp-nav a { min-height: 44px; }
    .cbp-nav .cbp-button { margin: 4px 0 0; }
    .cbp-card-grid, .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cbp-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cbp-restaurant-grid { grid-template-columns: 1fr; }
    .cbp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .cbp-container, .cb-container { width: calc(100% - 32px); }
    .cbp-header-inner { display: flex; min-height: 72px; padding: 12px 0; }
    .cbp-brand-mark { width: 44px; height: 40px; flex-basis: 44px; }
    .cbp-brand-copy strong { font-size: 21px; }
    .cbp-brand-copy span { font-size: 10px; }
    .cbp-directory-home h1, .cb-directory h1 { font-size: 32px; }
    .cbp-hero { padding: 24px 0; }
    .cbp-lead { font-size: 16px; }
    .chinobarrio-business-search, .cbp-search-shell .chinobarrio-business-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .cb-search-field:first-of-type, .chinobarrio-business-search > button { grid-column: 1 / -1; }
    .cbp-hero-stats { display: flex; gap: 8px 16px; }
    .cbp-hero-stats span { font-size: 12px; }
    .cbp-hero-stats span:last-child { display: none; }
    .cbp-quick-links { gap: 8px 20px; }
    .cbp-hero-panel > a { flex-basis: 88px; }
    .cbp-hero-panel img { width: 88px; height: 80px; }
    .cbp-hero-panel h2 { font-size: 18px; }
    .cbp-hero-panel-content .cbp-muted { display: none; }
    .cbp-section-header { display: flex; flex-wrap: wrap; align-items: start; }
    .cbp-section-header h2, .cbp-seo-copy h2 { font-size: 24px; }
    .cbp-guide-grid { gap: 16px; }
    .cbp-guide-item h3 { font-size: 17px; }
    .cbp-card-grid, .cb-grid, .cb-single-layout, .cb-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .cbp-card-grid, .cb-grid { gap: 20px; }
    .cbp-restaurant-card { grid-template-columns: 96px minmax(0, 1fr); padding: 12px; gap: 12px; min-height: 180px; }
    .cbp-restaurant-media { width: 96px; height: 96px; }
    .cbp-restaurant-card h3 { font-size: 18px; }
    .cbp-card-body { padding: 20px; }
    .cbp-business-card > a { height: auto; }
    .cb-single-layout { gap: 24px; }
    .cb-single-copy { padding: 0; }
    .cb-detail-grid { gap: 32px; padding-top: 32px; }
    .cb-facts { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--cb-line); }
    .cbp-footer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .cbp-directory-home *, .cb-directory *, .cbp-back-to-top { transition: none; scroll-behavior: auto; }
}
