/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #fafaf8; color: #1a1a1a; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; object-fit: cover; }

/* ── Intro page ── */
.page-intro { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #fafaf8; }
.intro-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 32px; max-width: 360px; width: 100%; }
.intro-logo { margin-bottom: 28px; }
.intro-logo img { width: 96px; height: 96px; object-fit: contain; border-radius: 20px; margin: 0 auto; }
.intro-text { margin-bottom: 36px; }
.intro-text h1 { font-size: 24px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; color: #1a1a1a; }
.intro-text p { font-size: 15px; color: #888; line-height: 1.6; }
.start-btn { display: block; width: 100%; background: #1a1a1a; color: #fff; padding: 15px 32px; border-radius: 14px; font-size: 16px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 20px; transition: opacity 0.15s; }
.start-btn:hover { opacity: 0.85; }

/* ── Language pills ── */
.lang-row { display: flex; gap: 8px; }
.lang-pill { padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; border: 1.5px solid #ddd; color: #888; background: #fff; cursor: pointer; letter-spacing: 0.04em; transition: all 0.15s; }
.lang-pill.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.header-lang { display: flex; gap: 6px; margin-left: auto; }
.header-lang .lang-pill { padding: 4px 11px; font-size: 11px; }

/* ── Site header ── */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 0.5px solid #eae8e2; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.header-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 7px; flex-shrink: 0; }
.header-text { flex: 1; min-width: 0; }
.header-name { font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-sub { font-size: 11px; color: #aaa; }
.back-btn { font-size: 20px; color: #888; flex-shrink: 0; padding-right: 4px; line-height: 1; }
.back-btn:hover { color: #1a1a1a; }

/* ── Exhibition page ── */
.exh-main { max-width: 600px; margin: 0 auto; padding: 20px 18px 60px; }
.exh-search-wrap { margin-bottom: 24px; }
.exh-search-input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  font-size: 16px;
  border: 1.5px solid #e8e6e0;
  border-radius: 12px;
  background: #f5f3ef;
  outline: none;
  color: #1a1a1a;
}.exh-search-input:focus { border-color: #1a1a1a; background: #fff; }
.exh-search-input::placeholder { color: #bbb; }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; margin-bottom: 12px; }

/* ── Room cards ── */
.room-list { display: flex; flex-direction: column; gap: 12px; }
.room-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 0.5px solid #eae8e2; border-radius: 14px; padding: 14px; transition: border-color 0.15s; }
.room-card:hover { border-color: #c8c6c0; }
.room-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #e8e5df; flex-shrink: 0; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-thumb-placeholder { width: 100%; height: 100%; background: #e0ddd8; }
.room-info { flex: 1; min-width: 0; }
.room-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.room-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 6px;
  max-height: 3.6em;
  overflow: hidden;
}.room-count { font-size: 11px; font-weight: 600; color: #bbb; letter-spacing: 0.04em; }
.room-arrow { font-size: 20px; color: #ccc; flex-shrink: 0; }

/* ── Room page / item grid ── */
.room-main { max-width: 600px; margin: 0 auto; padding: 20px 18px 60px; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.item-card { background: #fff; border: 0.5px solid #eae8e2; border-radius: 12px; overflow: hidden; transition: border-color 0.15s; }
.item-card:hover { border-color: #c8c6c0; }
.item-card-img { height: 120px; background: #e8e5df; overflow: hidden; }
.item-card-img img { width: 100%; height: 100%; object-fit: cover; }
.item-card-placeholder { width: 100%; height: 100%; background: #e0ddd8; }
.item-card-body { padding: 10px 12px 12px; }
.item-card-num { font-size: 10px; font-weight: 600; color: #bbb; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.item-card-title { font-size: 13px; font-weight: 500; color: #1a1a1a; line-height: 1.35; }

/* ── Item page ── */
.item-page { max-width: 600px; margin: 0 auto; padding: 0 0 60px; }
#item-image { width: 100%; height: 280px; object-fit: cover; background: #e8e5df; }
.item-meta { padding: 20px 18px 0; }
.item-number { display: inline-block; background: #f0ede8; color: #999; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
#item-title { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 12px; color: #1a1a1a; }
#item-description { font-size: 15px; line-height: 1.75; color: #555; margin-bottom: 24px; }

/* ── Audio section ── */
.audio-section { margin: 0 18px; background: #fff; border: 0.5px solid #eae8e2; border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.audio-section p { font-size: 13px; font-weight: 500; color: #1a1a1a; margin: 0 0 2px; }
audio { width: 100%; margin-top: 8px; }

/* ── Not found ── */
.not-found { text-align: center; padding: 60px 24px; color: #888; }
.not-found a { color: #1a1a1a; font-weight: 500; text-decoration: underline; }

/* ── Bottom navigation ── */
.page-intro .intro-wrap { padding-bottom: 90px; }
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 0.5px solid #eae8e2;
  display: flex;
  align-items: center;
  padding: 8px 0 18px;
  z-index: 100;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.nav-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 22px; height: 22px; }
.nav-label { font-size: 10px; font-weight: 500; color: #bbb; }
.nav-item.active .nav-label { color: #1a1a1a; }
.nav-item.active .nav-icon svg { stroke: #1a1a1a; }
.nav-item .nav-icon svg { stroke: #bbb; }

/* ── Page bottom padding (so content isn't hidden behind nav) ── */
.page-exhibition .exh-main,
.page-room .room-main,
.page-item .item-page,
.page-search .search-main { padding-bottom: 90px; }

/* ── Search page ── */
.search-main { max-width: 600px; margin: 0 auto; padding: 20px 18px 90px; }
.search-hero { margin-bottom: 20px; }
.search-hero h2 { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.search-hero p { font-size: 13px; color: #aaa; }
.search-input-wrap { position: relative; margin-bottom: 20px; }
.search-input-wrap input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  font-size: 16px;
  border: 1.5px solid #e8e6e0;
  border-radius: 12px;
  background: #f5f3ef;
  outline: none;
  color: #1a1a1a;
}
.search-input-wrap input:focus { border-color: #1a1a1a; background: #fff; }
.search-input-wrap input::placeholder { color: #bbb; }
.search-input-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  pointer-events: none;
}
.search-input-icon svg { width: 18px; height: 18px; stroke: #bbb; }
.search-results-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; margin-bottom: 12px; }
.search-results { display: flex; flex-direction: column; gap: 10px; }
.search-result-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 0.5px solid #eae8e2;
  border-radius: 12px; padding: 12px;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s;
}
.search-result-card:hover { border-color: #c8c6c0; }
.search-result-thumb {
  width: 52px; height: 52px;
  border-radius: 8px; overflow: hidden;
  background: #e8e5df; flex-shrink: 0;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-thumb-placeholder { width: 100%; height: 100%; background: #e0ddd8; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-num { font-size: 10px; font-weight: 600; color: #bbb; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.search-result-title { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.search-result-room { font-size: 11px; color: #aaa; margin-top: 2px; }
.search-empty { text-align: center; padding: 40px 0; color: #bbb; font-size: 14px; }
.search-highlight { background: #f5f0a0; border-radius: 2px; padding: 0 1px; }

/* ── Breadcrumb ── */
.breadcrumb-bar { display: flex; align-items: center; gap: 5px; padding: 6px 18px; background: #f5f3ef; border-bottom: 0.5px solid #eae8e2; overflow-x: auto; white-space: nowrap; }
.bc-link { font-size: 11px; color: #aaa; text-decoration: none; }
.bc-link:hover { color: #1a1a1a; }
.bc-sep { font-size: 11px; color: #ddd; }
.bc-current { font-size: 11px; color: #1a1a1a; font-weight: 500; }

/* ── Category page ── */
.page-category .cat-main { max-width: 600px; margin: 0 auto; padding: 20px 18px 90px; }
.cat-list { display: flex; flex-direction: column; gap: 10px; }
.cat-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 0.5px solid #eae8e2; border-radius: 12px; padding: 16px 18px; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.cat-card:hover { border-color: #c8c6c0; }
.cat-info { flex: 1; }
.cat-name { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 3px; }
.cat-count { font-size: 12px; color: #aaa; }

/* ── Gallery ── */
.gallery { position: relative; overflow: hidden; background: #e4e1db; height: 280px; }
.gallery-track { display: flex; height: 100%; transition: transform 0.3s ease; }
.gallery-slide { min-width: 100%; height: 100%; flex-shrink: 0; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-counter { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.5); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; display: none; }
.gallery-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.gallery-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.2s; }
.gallery-dot.active { background: #fff; width: 18px; border-radius: 3px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px 18px; background: #fff; border-bottom: 0.5px solid #eae8e2; overflow-x: auto; }
.gallery-thumb { width: 52px; height: 52px; border-radius: 7px; overflow: hidden; flex-shrink: 0; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: #1a1a1a; }

/* ── Item page content ── */
.item-page { max-width: 600px; margin: 0 auto; padding: 0 0 90px; }
.item-meta { padding: 16px 18px 0; }
.item-badges { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.item-number { display: inline-block; background: #f0ede8; color: #999; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.item-cat-badge { display: inline-block; background: #e8f0fe; color: #185FA5; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
#item-title { font-size: 22px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; color: #1a1a1a; }
#item-description { font-size: 15px; line-height: 1.75; color: #555; margin-bottom: 0; }

/* ── Video section ── */
.video-section { margin: 16px 18px 0; }

/* ── Audio section ── */
.audio-section { margin: 16px 18px 0; background: #fff; border: 0.5px solid #eae8e2; border-radius: 14px; padding: 14px 16px; }
.audio-section p { font-size: 13px; font-weight: 500; color: #1a1a1a; margin-bottom: 8px; }
audio { width: 100%; }

/* ── Custom fields ── */
.fields-section { margin: 16px 18px 0; }
.fields-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #bbb; margin-bottom: 8px; }
.fields-table { background: #fff; border: 0.5px solid #eae8e2; border-radius: 12px; overflow: hidden; }
.field-row { display: flex; padding: 10px 14px; border-bottom: 0.5px solid #f5f3ef; }
.field-row:last-child { border-bottom: none; }
.field-key { font-size: 13px; color: #aaa; min-width: 130px; flex-shrink: 0; }
.field-val { font-size: 13px; font-weight: 500; color: #1a1a1a; flex: 1; }

/* ── Not found ── */
.not-found { text-align: center; padding: 60px 24px; color: #888; }
.not-found a { color: #1a1a1a; font-weight: 500; text-decoration: underline; }

/* ── Page bottom padding ── */
.page-category .cat-main,
.page-room .room-main,
.page-item .item-page { padding-bottom: 90px; }