/* Sushi Directory VN — scoped under .sd so it doesn't fight the theme. */
.sd {
	--sd-red: #d6453d;
	--sd-red-dark: #b3332c;
	--sd-ink: #1f2328;
	--sd-muted: #6b7280;
	--sd-line: #e7e2da;
	--sd-rice: #faf7f2;
	--sd-green: #1a7f4b;
	--sd-star: #f2a33a;
	--sd-radius: 14px;
	color: var(--sd-ink);
	line-height: 1.55;
}
.sd *, .sd *::before, .sd *::after { box-sizing: border-box; }
.sd a { color: inherit; }
.sd h2 { margin: 2rem 0 .8rem; font-size: 1.35rem; line-height: 1.3; }
.sd h3 { line-height: 1.35; }
.sd-muted { color: var(--sd-muted); }

/* Breadcrumb */
.sd-bc { font-size: .85rem; color: var(--sd-muted); margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sd-bc a { text-decoration: none; color: var(--sd-muted); }
.sd-bc a:hover { color: var(--sd-red); }
.sd-bc__sep { opacity: .6; }

/* Stars & rating */
.sd-stars { position: relative; display: inline-block; color: #d9d4cc; font-size: 1rem; letter-spacing: 1px; line-height: 1; vertical-align: -1px; }
.sd-stars::before { content: "★★★★★"; }
.sd-stars > span { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: var(--sd-star); }
.sd-rating b { font-weight: 700; }
.sd-rating--none { color: var(--sd-muted); font-size: .9rem; }

/* Chips */
.sd-chips, .sd-card__chips, .sd-hero__chips { display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.sd-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.sd-chip { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; background: #f1ede6; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.sd-chip--price { background: #fdecea; color: var(--sd-red-dark); font-weight: 600; }
.sd-chip--area { background: #eef4ff; color: #2a4fa8; }
.sd-chip--dish { background: #fff6e8; }
.sd-chip--link { background: #fff; border: 1px solid var(--sd-line); white-space: normal; max-width: 100%; }
a.sd-chip:hover { border-color: var(--sd-red); color: var(--sd-red); }

/* Status */
.sd-status { display: inline-block; font-size: .85rem; font-weight: 600; margin: .35rem 0; }
.sd-status.is-open { color: var(--sd-green); }
.sd-status.is-closed { color: var(--sd-red-dark); }
.sd-status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; margin-right: .4rem; vertical-align: 1px; }

/* Buttons */
.sd-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 40px; padding: .45rem 1rem; border-radius: 10px; border: 1px solid var(--sd-line); background: #fff; color: var(--sd-ink) !important; font-size: .9rem; font-weight: 600; text-decoration: none !important; cursor: pointer; line-height: 1.2; }
.sd-btn:hover { border-color: var(--sd-ink); }
.sd-btn--primary { background: var(--sd-red); border-color: var(--sd-red); color: #fff !important; }
.sd-btn--primary:hover { background: var(--sd-red-dark); border-color: var(--sd-red-dark); }
.sd-btn--ghost { background: transparent; }
.sd-btn[disabled] { opacity: .6; cursor: wait; }

/* Cards */
.sd-cards { display: grid; gap: 1rem; }
.sd-card { display: grid; grid-template-columns: 132px 1fr; gap: 1rem; padding: 1rem; background: #fff; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); }
.sd-card__img { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--sd-rice); }
.sd-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2.6rem; background: linear-gradient(135deg, #fff1ea, #f6efe4); }
.sd-rank { position: absolute; top: .45rem; left: .45rem; min-width: 1.9rem; height: 1.9rem; padding: 0 .4rem; border-radius: 999px; background: var(--sd-red); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .95rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sd-card__body { min-width: 0; }
.sd .sd-card__title { margin: 0 0 .25rem; font-size: 1.08rem; }
.sd-card__title a { text-decoration: none; }
.sd-card__title a:hover { color: var(--sd-red); }
.sd-card__meta { margin-bottom: .35rem; font-size: .92rem; }
.sd-card__addr { font-size: .88rem; color: var(--sd-muted); margin-top: .4rem; }
.sd-dist { color: var(--sd-ink); font-weight: 600; }
.sd-card__excerpt { margin: .5rem 0 0; font-size: .93rem; }
.sd-card .sd-btn { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }

/* Map */
.sd-map { width: 100%; height: 320px; border-radius: var(--sd-radius); border: 1px solid var(--sd-line); overflow: hidden; z-index: 0; background: #eef0f2; }
.sd-map--list { height: 380px; margin: 1.25rem 0; }
.sd-map--single { height: 260px; }
.sd-pin span { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--sd-red); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.sd-pin--num span { width: 30px; height: 30px; color: #fff; font: 800 13px/24px system-ui, sans-serif; text-align: center; }
.sd .leaflet-popup-content a { text-decoration: none; color: var(--sd-ink); }

/* Shop page */
.sd-hero { padding: 1.1rem 1.2rem; background: var(--sd-rice); border-radius: var(--sd-radius); margin-bottom: 1.5rem; }
.sd-hero__rating { font-size: 1.05rem; margin-bottom: .5rem; }
.sd-hero__addr { margin: .35rem 0 0; color: var(--sd-muted); }
.sd-grid { display: grid; gap: 1.5rem; }
.sd-sec h2:first-child { margin-top: 0; }
.sd-sec + .sd-sec { margin-top: 1.75rem; }
.sd-side { display: grid; gap: 1rem; align-content: start; }
.sd-box { border: 1px solid var(--sd-line); border-radius: var(--sd-radius); padding: 1rem; background: #fff; }
.sd .sd-box__title { margin: 0 0 .6rem; font-size: 1rem; }
.sd-hours { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 0; }
.sd-hours th, .sd-hours td { padding: .3rem 0; border: 0; text-align: left; font-weight: 400; }
.sd-hours td { text-align: right; }
.sd-hours tr.is-today { font-weight: 700; color: var(--sd-red-dark); }
.sd-hours tr.is-today th { font-weight: 700; }
.sd-contact { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.sd-contact li + li { margin-top: .3rem; }
.sd-ranks { list-style: none; margin: 0; padding: 0; }
.sd-ranks li { padding: .45rem 0; border-bottom: 1px dashed var(--sd-line); }
.sd-ranks__n { display: inline-block; min-width: 2.2rem; font-weight: 800; color: var(--sd-red); }
.sd-source { margin-top: 2rem; font-size: .82rem; color: var(--sd-muted); }

/* Toplist */
.sd-updated { font-size: .88rem; color: var(--sd-muted); }
.sd-summary { border-left: 4px solid var(--sd-red); background: var(--sd-rice); padding: .9rem 1.1rem; border-radius: 0 var(--sd-radius) var(--sd-radius) 0; margin: 1rem 0; }
.sd-summary__title { font-weight: 800; margin: 0 0 .35rem; }
.sd-summary ol { margin: 0; padding-left: 1.2rem; }
.sd-ranklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.sd-ranklist > li { scroll-margin-top: 90px; }
.sd-table-wrap { overflow-x: auto; }
.sd-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sd-table th, .sd-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--sd-line); text-align: left; white-space: nowrap; }
.sd-table th { background: var(--sd-rice); font-weight: 700; }
.sd-table td:nth-child(2) { white-space: normal; min-width: 160px; }
.sd-faq h3 { font-size: 1.02rem; margin: 1.1rem 0 .3rem; }
.sd-faq p { margin: 0; }

/* Hub */
.sd-hub__group + .sd-hub__group { margin-top: 1.5rem; }
.sd-hub__list { margin: 0; padding-left: 1.1rem; }
.sd-hub__list li { margin: .3rem 0; }

/* Directory */
.sd-filters { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem .75rem; padding: 1rem; border: 1px solid var(--sd-line); border-radius: var(--sd-radius); background: var(--sd-rice); }
.sd-field { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; color: var(--sd-muted); margin: 0; }
.sd-field input, .sd-field select { width: 100%; min-height: 42px; padding: .45rem .6rem; border: 1px solid var(--sd-line); border-radius: 10px; background: #fff; font-size: .95rem; color: var(--sd-ink); font-weight: 400; }
.sd-field--kw { grid-column: 1 / -1; }
.sd-check { display: flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; margin: 0; align-self: end; min-height: 42px; }
.sd-filters__btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; }
.sd-geo-msg { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--sd-muted); }
.sd-dir__top { margin: 1rem 0 0; align-items: center; }
.sd-count { margin: 1rem 0 .75rem; }
.sd-dir__layout { display: grid; gap: 1rem; }
.sd-dir__map { order: -1; }
.sd-map--dir { height: 280px; }
.sd-pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.25rem; }
.sd-pager a, .sd-pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--sd-line); border-radius: 10px; text-decoration: none; background: #fff; }
.sd-pager .is-current { background: var(--sd-ink); color: #fff; border-color: var(--sd-ink); }
.sd-empty { padding: 2rem 1rem; text-align: center; color: var(--sd-muted); border: 1px dashed var(--sd-line); border-radius: var(--sd-radius); }

@media (max-width: 520px) {
	/* Phone: thumbnail + title row, details full width underneath. */
	.sd-card { grid-template-columns: 76px 1fr; column-gap: .75rem; row-gap: .15rem; padding: .8rem; }
	.sd-card__body { display: contents; }
	.sd-card__img { grid-row: 1 / span 3; align-self: start; }
	.sd-card__title, .sd-card__meta, .sd-card__chips { grid-column: 2; }
	.sd-card__addr, .sd-card .sd-status, .sd-card__excerpt, .sd-card .sd-actions { grid-column: 1 / -1; }
	.sd .sd-card__title { font-size: 1rem; }
	.sd-card__meta { font-size: .85rem; margin-bottom: .15rem; }
	.sd-ph { font-size: 2rem; }
	.sd-rank { top: .25rem; left: .25rem; min-width: 1.6rem; height: 1.6rem; font-size: .82rem; }
	.sd-card .sd-actions .sd-btn--ghost { display: none; }
}
@media (min-width: 760px) {
	.sd-cards--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
	.sd-cards--grid .sd-card { grid-template-columns: 1fr; }
	.sd-cards--grid .sd-card__img { aspect-ratio: 16 / 9; }
	.sd-filters { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; align-items: end; }
	.sd-field--kw { grid-column: auto; }
	.sd-grid { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (min-width: 1024px) {
	.sd-dir__layout { grid-template-columns: minmax(0, 1fr) 42%; align-items: start; }
	.sd-dir__map { order: 0; position: sticky; top: 90px; }
	.sd-map--dir { height: calc(100vh - 140px); min-height: 420px; }
}

/* Brand chip & brand page */
.sd .sd-chip--brand { background: var(--sd-ink); color: #fff; font-weight: 600; }
.sd a.sd-chip--brand:hover { background: var(--sd-red); color: #fff; border-color: transparent; }
.sd-brand .sd-chip--brand { display: none; }
.sd-brand h2 .sd-muted { font-weight: 400; font-size: .9em; }

/* [sd_featured] */
.sd-featured__title { margin-top: 0; }
.sd-featured__desc { color: var(--sd-muted); margin: -.25rem 0 1rem; }
.sd-featured__areas { margin: 0 0 1.25rem; }
.sd-featured__more { margin-top: 1.25rem; }
@media (min-width: 760px) {
	.sd-cards--feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
