:root {
  color-scheme: light;
  --ink: #10253a;
  --muted: #617384;
  --line: #d8e8ee;
  --surface: #fff;
  --surface-soft: #f2fbfe;
  --bg: #f5f9fb;
  --accent: #13a8d6;
  --accent-dark: #0b5578;
  --teal: #24c6c8;
  --sun: #f2c86b;
  --coral: #e26047;
  --blue: #1f6fb2;
  --navy: #081f35;
  --shadow: 0 12px 30px rgba(8, 31, 53, 0.08);
  --shadow-soft: 0 6px 16px rgba(8, 31, 53, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, #edf9f8 0, #f6fbfd 390px, var(--bg) 680px),
    var(--bg);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button,
a,
select {
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-areas: "brand language";
  grid-template-columns: minmax(0, 1fr) minmax(108px, 142px);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(19, 168, 214, 0.16);
  box-shadow: 0 8px 26px rgba(8, 31, 53, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(8, 31, 53, 0.16);
}

.brand-name {
  overflow: hidden;
  color: var(--navy);
  font-size: 18px;
  max-width: 116px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-switch {
  grid-area: language;
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-self: end;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding-left: 11px;
  color: #587082;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #c8e2eb;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-size: 12px;
  font-weight: 700;
}

.language-switch::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-right: 6px;
  background:
    linear-gradient(var(--accent-dark), var(--accent-dark)) center / 10px 2px no-repeat,
    radial-gradient(circle at center, transparent 5px, var(--accent-dark) 6px, var(--accent-dark) 7px, transparent 8px);
  opacity: 0.82;
}

.language-switch select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 28px 0 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  outline: 0;
}

main {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 12px 14px 42px;
}

.finder {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: 18px 0 4px;
}

.market-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

:lang(ko) {
  word-break: keep-all;
}

h1 {
  max-width: 100%;
  margin: 0;
  color: var(--navy);
  font-size: 31px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.market-copy p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-scene {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, #fff7df 0%, #e4f8f7 46%, #dff2ff 100%);
  border: 1px solid rgba(19, 168, 214, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-scene::before,
.hero-scene::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -24px;
  width: 190px;
  height: 120px;
  background: rgba(36, 198, 200, 0.18);
  border-radius: 60% 44% 0 0;
  transform: rotate(-7deg);
}

.hero-scene::after {
  right: 60px;
  bottom: -42px;
  width: 200px;
  height: 92px;
  background: rgba(31, 111, 178, 0.14);
  transform: rotate(4deg);
}

.hero-sun {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #ffd767, #efad37);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(239, 173, 55, 0.25);
}

.hero-mountain {
  position: absolute;
  left: 54px;
  bottom: 18px;
  width: 160px;
  height: 108px;
  background: linear-gradient(135deg, #dff8fb 0%, #a9d6e6 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.hero-mountain-back {
  left: 112px;
  bottom: 12px;
  width: 184px;
  height: 94px;
  background: linear-gradient(135deg, #f4fbfe 0%, #bfe3e9 100%);
  opacity: 0.76;
}

.hero-card-preview {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 9px 12px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 168, 214, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.hero-card-preview img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.hero-scene-banner {
  display: block;
  background: var(--surface);
}

.hero-scene-banner::before,
.hero-scene-banner::after {
  display: none;
}

.hero-scene-banner img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
}

a.hero-scene-banner:hover,
a.hero-scene-banner:focus-visible {
  border-color: rgba(19, 168, 214, 0.38);
  box-shadow: 0 10px 24px rgba(8, 31, 53, 0.1);
}

a.hero-scene-banner:focus-visible {
  outline: 3px solid rgba(19, 168, 214, 0.22);
  outline-offset: 3px;
}

.filter-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 168, 214, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  color: var(--ink);
  background: #fbfdfe;
  border: 1px solid #c9e1e8;
  border-radius: 8px;
  outline: 0;
  font-size: 15px;
  font-weight: 600;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(19, 168, 214, 0.18);
}

.category-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.category-search .primary-button {
  grid-column: 1 / -1;
}

.guide-filter-drawer {
  display: grid;
  gap: 8px;
}

.guide-filter-drawer-body {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.category-chips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin: 2px -10px 0;
  padding: 0 10px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.event-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin-top: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tag-filters {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.tag-filters > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.tag-chips {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  margin: 0 -10px;
  padding: 0 10px 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.event-filters span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.category-chip,
.event-chip,
.tag-chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #c7e3ea;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.category-chip.is-active,
.event-chip.is-active,
.tag-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(19, 168, 214, 0.2);
}

.nearby-panel {
  display: grid;
  gap: 6px;
}

.nearby-button {
  min-height: 42px;
  width: 100%;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #c7e3ea;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.nearby-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-color: transparent;
}

.nearby-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.nearby-status {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.advanced-filters {
  display: grid;
}

.advanced-filters summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 11px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid #c7e3ea;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.advanced-filters summary::-webkit-details-marker {
  display: none;
}

.advanced-filters summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.advanced-filters[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}

.advanced-filters .filter-grid {
  margin-top: 10px;
}

.secondary-actions {
  display: grid;
  margin-top: 10px;
}

.primary-button,
.ghost-button {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  box-shadow: 0 10px 22px rgba(19, 168, 214, 0.24);
}

.primary-button:hover,
.next-page-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(19, 168, 214, 0.28);
}

.ghost-button {
  color: var(--accent-dark);
  background: #fff;
  border-color: #bfdfe8;
}

.market-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 8px;
  margin: 12px -14px 0;
  padding: 0 14px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.market-tab {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue), var(--accent));
  border-color: transparent;
}

.market-tab span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.market-tab.is-active span {
  color: var(--sun);
}

.market-tab strong {
  font-size: 14px;
  line-height: 1.15;
}

.market-tab small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.market-tab.is-active small {
  color: rgba(255, 255, 255, 0.8);
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 10px;
}

.catalog-toolbar h2 {
  margin: 3px 0 0;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.2;
}

.result-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-grid {
  display: grid;
  gap: 14px;
}

.catalog-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 168, 214, 0.14);
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(8, 31, 53, 0.06);
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 168, 214, 0.26);
  box-shadow: var(--shadow);
}

.cover-link {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 10px;
  background:
    linear-gradient(180deg, #e7f7fc, #f2fbfe);
}

.cover-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(8, 31, 53, 0.16);
}

.card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px;
}

.guide-label-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.guide-label,
.distance-pill {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.guide-label {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.guide-label-new {
  background: linear-gradient(135deg, var(--coral), #f0875e);
}

.guide-label-near {
  background: linear-gradient(135deg, var(--blue), var(--accent));
}

.guide-label-pickup {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.distance-pill {
  max-width: 92px;
  overflow: hidden;
  color: var(--accent-dark);
  background: var(--surface-soft);
  text-overflow: ellipsis;
}

.card-topline {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.card-topline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
}

.catalog-card h3 a:hover {
  color: var(--accent-dark);
}

.catalog-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 20px;
}

.card-tags span {
  padding: 3px 7px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.catalog-meta {
  display: grid;
  gap: 3px;
  margin: 0;
}

.catalog-meta div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 7px;
}

.catalog-meta dt {
  color: #708292;
  font-size: 11px;
  font-weight: 800;
}

.catalog-meta dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.support-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.support-language-link {
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.support-language-link:hover {
  color: var(--accent-dark);
}

.support-separator {
  color: #708292;
  padding: 0 4px;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  gap: 6px;
  justify-self: stretch;
  color: var(--navy);
  background: linear-gradient(135deg, #ffd95a, #f7b51d);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.detail-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(19, 168, 214, 0.22);
}

.card-actions {
  display: grid;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.guide-detail-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.guide-detail-link:hover {
  color: var(--accent-dark);
}

.book-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 2px;
}

.book-icon::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 50%;
  width: 2px;
  background: currentColor;
  transform: translateX(-50%);
}

.empty-message {
  display: none;
  margin: 20px 0 0;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(19, 168, 214, 0.16);
  border-radius: 8px;
}

.empty-message.is-visible {
  display: block;
}

.pagination-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
}

.page-count {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.next-page-button {
  min-height: 46px;
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
}

.next-page-button[hidden] {
  display: none;
}

.page-footer {
  display: grid;
  gap: 14px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 4px 14px 42px;
  color: var(--muted);
}

.wisebook-footer-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid rgba(19, 168, 214, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.wisebook-logo {
  display: block;
  width: min(208px, 100%);
  height: auto;
}

.page-footer h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 17px;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-list a {
  padding: 8px 10px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #c7e3ea;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.page-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.cookie-consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: grid;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(19, 168, 214, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(8, 31, 53, 0.16);
}

.cookie-consent h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.3;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cookie-more-link,
.cookie-accept-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.cookie-more-link {
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid #c8e2eb;
}

.cookie-accept-button {
  color: #fff;
  background: var(--accent-dark);
  border: 1px solid var(--accent-dark);
}

.cookie-more-link:hover,
.cookie-more-link:focus-visible {
  background: #e6f7fb;
}

.cookie-accept-button:hover,
.cookie-accept-button:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
}

.detail-main {
  padding-top: 18px;
}

.guide-detail {
  display: grid;
  gap: 14px;
}

.back-link {
  justify-self: start;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.guide-detail-hero {
  display: grid;
  gap: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 168, 214, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-cover {
  display: grid;
  place-items: center;
  padding: 12px;
  background: linear-gradient(180deg, #e7f7fc, #f2fbfe);
  border-radius: 8px;
}

.detail-cover img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(8, 31, 53, 0.18);
}

.detail-content {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.detail-content h1 {
  font-size: 30px;
}

.detail-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.detail-meta {
  display: grid;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-meta div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.detail-meta div:last-child {
  border-bottom: 0;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.detail-meta dd a {
  color: var(--blue);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail-meta .card-tags {
  min-height: 0;
}

.muted-note {
  color: var(--muted);
  font-weight: 700;
}

.related-link-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-detail-link {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--accent));
  border-radius: 8px;
}

.share-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid #c7e3ea;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.related-section {
  margin-top: 20px;
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 17px;
  }

  .language-switch {
    min-width: 120px;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .catalog-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .catalog-meta div {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .brand-name {
    display: none;
  }

  .language-switch {
    flex-basis: 120px;
  }
}

@media (min-width: 760px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    min-height: 70px;
    padding: 12px 28px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 22px;
    max-width: none;
  }

  .language-switch {
    flex-basis: 132px;
    min-width: 132px;
    width: 132px;
  }

  .cookie-consent {
    right: 24px;
    left: auto;
    width: min(440px, calc(100vw - 48px));
  }

  main {
    padding: 28px 24px 56px;
  }

  .finder {
    grid-template-columns: minmax(430px, 0.9fr) minmax(440px, 1fr);
    align-items: center;
    gap: 28px;
    width: min(1080px, 100%);
    margin: 0 auto;
  }

  .market-copy {
    align-self: end;
  }

  h1 {
    font-size: 40px;
    line-height: 1.14;
  }

  .hero-scene {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 180px;
  }

  .filter-panel {
    align-self: start;
    width: min(100%, 440px);
  }

  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-search {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 150px;
  }

  .category-search .primary-button {
    grid-column: auto;
  }

  .advanced-filters summary {
    display: none;
  }

  .advanced-filters .filter-grid {
    margin-top: 2px;
  }

  .market-tabs {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(820px, 100%);
    margin: 0 auto;
  }

  .catalog-toolbar {
    width: min(820px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .catalog-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .guide-detail-hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px;
  }

  .detail-cover img {
    width: min(280px, 100%);
  }

  .detail-content h1 {
    font-size: 30px;
  }
}

@media (max-width: 520px) {
  .detail-meta div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px;
  }

  .detail-meta dd {
    font-size: 14px;
  }

  .detail-meta .card-tags span {
    white-space: nowrap;
  }
}

@media (min-width: 900px) {
  .site-header {
    gap: 24px;
  }
}

@media (min-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
