:root {
  --bg: #0e0e0e; --surface: #161616; --surface2: #1e1e1e; --surface3: #252525;
  --border: rgba(255,255,255,0.07); --border2: rgba(255,255,255,0.14);
  --text: #e8e8e4; --text2: #9a9a90; --text3: #585850;
  --accent: #e8a020; --accent2: #f0c060;
  --green: #3ecf8e; --red: #f05050; --blue: #5090f0; --purple: #a060f0;
  --mono: 'IBM Plex Mono', monospace; --sans: 'Syne', sans-serif; --jp: 'Noto Serif JP', serif;
  --r: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); font-size: 14px; height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
header { height: 52px; background: var(--surface); border-bottom: 1px solid var(--border2); display: flex; align-items: center; padding: 0 20px; gap: 12px; flex-shrink: 0; z-index: 100; }
.logo { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.logo span { color: var(--accent); }
.logo-jp { font-family: var(--jp); font-weight: 300; font-size: 13px; color: var(--text3); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r); font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; letter-spacing: .01em; transition: all .15s; white-space: nowrap; text-decoration: none; }
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { background: var(--surface3); color: var(--accent); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hbtn { padding: 6px 12px; border-radius: var(--r); font-family: var(--sans); font-size: 11px; font-weight: 600; cursor: pointer; letter-spacing: .04em; border: 1px solid var(--border2); background: var(--surface2); color: var(--text2); transition: all .15s; }
.hbtn:hover { background: var(--surface3); color: var(--text); }
.hbtn.active { background: var(--accent); color: #000; border-color: var(--accent); }
.nav-toggle { display: none; background: var(--surface2); border: 1px solid var(--border2); color: var(--text); font-size: 18px; width: 38px; height: 34px; border-radius: var(--r); cursor: pointer; }

.loading-strip { height: 2px; background: var(--surface3); flex-shrink: 0; display: none; overflow: hidden; }
.loading-strip.on { display: block; }
.loading-strip::after { content: ''; display: block; width: 30%; height: 100%; background: var(--accent); animation: ls 1s ease-in-out infinite; }
@keyframes ls { 0%{margin-left:-30%} 100%{margin-left:100%} }

/* DISCOVER LAYOUT */
.discover-view { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.disco-head { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 760px; margin-bottom: 18px; flex-wrap: wrap; }
.disco-head .disco-progress { margin: 0 0 0 auto; }
.disco-progress { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 460px; }
.aspect-toggle { margin-left: auto; background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); border-radius: 20px; padding: 5px 12px; font-family: var(--sans); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.aspect-toggle:hover { border-color: var(--accent); color: var(--text); }
.aspect-toggle.on { background: var(--accent); border-color: var(--accent); color: #000; }
.aspect-row { width: 100%; max-width: 460px; margin: 12px 0 0; flex-shrink: 0; }
.aspect-hint { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.aspect-hint span { color: var(--text3); font-size: 11px; }
.aspect-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.aspect-chip { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); border-radius: 20px; padding: 6px 12px; font-family: var(--sans); font-size: 12px; font-weight: 600; cursor: pointer; transition: all .12s; }
.aspect-chip:hover { border-color: var(--accent); color: var(--text); }
.aspect-chip.on { background: var(--accent); border-color: var(--accent); color: #000; }
.disco-card { width: 100%; max-width: 460px; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--border2); border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.disco-img { width: 100%; height: 300px; object-fit: cover; display: block; cursor: zoom-in; }
.disco-ph { width: 100%; height: 300px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-family: var(--jp); font-size: 72px; color: var(--border2); }
.disco-body { padding: 16px 18px; }
.disco-loc { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.disco-title { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 5px 0 10px; }
.disco-price { font-family: var(--mono); font-size: 22px; color: var(--accent2); margin-bottom: 10px; }
.disco-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.disco-why { font-size: 12px; color: var(--text3); margin-top: 8px; }
.disco-actions { display: flex; gap: 14px; justify-content: center; margin: 18px 0 8px; }
.disco-btn { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border2); background: var(--surface2); font-size: 26px; cursor: pointer; transition: transform .1s, border-color .15s; }
.disco-btn:hover { transform: scale(1.08); }
.disco-btn.dislike:hover { border-color: var(--red); }
.disco-btn.like:hover { border-color: var(--green); }
.disco-open { background: none; border: 1px solid var(--border2); color: var(--text2); border-radius: var(--r); padding: 8px 14px; font-family: var(--sans); font-size: 13px; cursor: pointer; text-decoration: none; display: inline-block; margin-top: 10px; }
.disco-hint { font-size: 11px; color: var(--text3); margin-top: 10px; font-family: var(--mono); }
.disco-disclaimer { flex-shrink: 0; padding: 8px 16px; border-top: 1px solid var(--border); background: var(--surface); font-size: 10px; line-height: 1.5; color: var(--text3); text-align: center; }
.disco-disclaimer a { color: var(--accent); text-decoration: none; }
.disco-thumbs { display: flex; gap: 4px; padding: 6px 8px 0; flex-wrap: wrap; }
.disco-thumbs img { width: 62px; height: 46px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }
.disco-specs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 10px 0; }
.disco-spec { background: var(--surface3); border-radius: 6px; padding: 8px 10px; }
.disco-spec span { display: block; font-size: 10px; color: var(--text3); font-family: var(--mono); text-transform: uppercase; margin-bottom: 2px; }
.disco-spec b { font-size: 13px; }
.disco-desc { font-size: 13px; color: var(--text2); line-height: 1.6; margin: 10px 0; }
.disco-likes-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.spec-pill { background: var(--surface3); border: 1px solid var(--border); border-radius: 4px; padding: 3px 8px; font-family: var(--mono); font-size: 11px; color: var(--text2); display: inline-flex; align-items: center; gap: 4px; }

/* LISTING CARD (for likes grid) */
.lcard { display: block; text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface2); cursor: pointer; transition: background .1s; align-self: start; display: flex; flex-direction: column; min-height: 400px; }
.lcard:hover { background: var(--surface3); }
.lcard-img-wrap { position: relative; width: 100%; height: 160px; overflow: hidden; background: var(--surface3); }
.lcard-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lcard-img-placeholder { width: 100%; height: 160px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-family: var(--jp); font-size: 36px; color: var(--border2); }
.lcard-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge { padding: 2px 7px; border-radius: 3px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-free { background: var(--green); color: #000; }
.badge-cheap { background: var(--accent); color: #000; }
.badge-source { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.7); color: var(--text2); padding: 2px 6px; border-radius: 3px; font-size: 9px; font-family: var(--mono); }
.lcard-body { padding: 12px 14px 10px; flex: 1; }
.lcard-location { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .08em; margin-bottom: 4px; text-transform: uppercase; }
.lcard-title { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 8px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.lcard-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.lcard-price-jpy { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--accent2); }
.lcard-price-eur { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.lcard-price-free { font-family: var(--mono); font-size: 14px; color: var(--green); font-weight: 500; }
.lcard-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.airbnb-bar { display: flex; align-items: center; gap: 8px; }
.airbnb-label { font-size: 9px; color: var(--text3); font-family: var(--mono); letter-spacing: .06em; white-space: nowrap; }
.airbnb-track { flex: 1; height: 3px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.airbnb-fill { height: 100%; border-radius: 2px; }
.airbnb-score-val { font-family: var(--mono); font-size: 9px; font-weight: 600; min-width: 28px; text-align: right; }
.lcard-footer { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px 10px; }
.lcard-link { font-family: var(--mono); font-size: 9px; color: var(--blue); text-decoration: none; }
.watch-empty { text-align: center; color: var(--text3); padding: 50px 16px; }
.fav-btn { position: absolute; bottom: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); border: 1px solid var(--border2); color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; z-index: 3; }
.fav-btn:hover { background: rgba(0,0,0,.85); transform: scale(1.1); }
.fav-btn.on { color: var(--red); border-color: var(--red); }

/* DETAIL PANEL */
.detail-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 8999; opacity: 0; pointer-events: none; transition: opacity .2s; }
.detail-backdrop.open { opacity: 1; pointer-events: all; }
.detail-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); width: min(560px, 94vw); max-height: 90vh; background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; z-index: 9000; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; overflow-y: auto; box-shadow: 0 16px 60px rgba(0,0,0,.6); }
.detail-panel.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: all; }
.detail-panel::-webkit-scrollbar { width: 4px; }
.detail-panel::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.dp-close { position: sticky; top: 0; z-index: 10; background: var(--surface); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.dp-close-btn { width: 28px; height: 28px; background: var(--surface3); border: 1px solid var(--border2); border-radius: 50%; cursor: pointer; font-size: 14px; color: var(--text2); display: flex; align-items: center; justify-content: center; }
.dp-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.dp-img-placeholder { width: 100%; height: 220px; background: var(--surface3); display: flex; align-items: center; justify-content: center; font-family: var(--jp); font-size: 60px; color: var(--border2); }
.dp-body { padding: 20px; }
.dp-location { font-family: var(--mono); font-size: 10px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.dp-title { font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.dp-price-block { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); padding: 14px 16px; margin-bottom: 16px; }
.dp-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.dp-price-jpy { font-family: var(--mono); font-size: 22px; color: var(--accent2); font-weight: 500; }
.dp-price-eur { font-family: var(--mono); font-size: 14px; color: var(--text3); }
.dp-price-free { font-family: var(--mono); font-size: 20px; color: var(--green); }
.dp-price-note { font-size: 10px; color: var(--text3); margin-top: 2px; }
.dp-specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.dp-spec { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.dp-spec-label { font-size: 10px; color: var(--text2); font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.dp-spec-val { font-size: 14px; font-weight: 600; color: var(--text); }
.dp-section-title { font-size: 12px; font-weight: 700; color: var(--text2); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 4px; }
.dp-desc { font-size: 12px; line-height: 1.7; color: var(--text2); margin-bottom: 16px; }
.airbnb-card { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.airbnb-score-big { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.airbnb-score-circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; border: 2px solid; }
.airbnb-score-num { font-family: var(--mono); font-size: 18px; font-weight: 500; line-height: 1; }
.airbnb-score-label { font-size: 8px; letter-spacing: .06em; opacity: .7; }
.airbnb-verdict { flex: 1; }
.airbnb-verdict-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.airbnb-verdict-sub { font-size: 13px; color: var(--text2); line-height: 1.5; }
.airbnb-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.airbnb-metric { display: flex; flex-direction: column; gap: 3px; }
.airbnb-metric-label { font-size: 10px; color: var(--text2); font-family: var(--mono); letter-spacing: .03em; }
.airbnb-metric-val { font-size: 15px; font-weight: 600; font-family: var(--mono); }
.airbnb-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.airbnb-pros, .airbnb-cons { background: var(--surface3); border-radius: 4px; padding: 11px; }
.airbnb-pros-title { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.airbnb-cons-title { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.airbnb-point { font-size: 12px; color: var(--text); line-height: 1.55; display: flex; gap: 5px; margin-bottom: 3px; }
.airbnb-point::before { content: '·'; color: var(--text3); flex-shrink: 0; }
.yen-calc { background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); padding: 16px; margin-bottom: 16px; }
.yen-calc-title { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.yen-calc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.yen-calc-label { font-size: 10px; color: var(--text2); font-family: var(--mono); width: 90px; flex-shrink: 0; }
.yen-calc-input { flex: 1; height: 30px; background: var(--surface3); border: 1px solid var(--border2); border-radius: 4px; padding: 0 8px; font-family: var(--mono); font-size: 12px; color: var(--text); outline: none; }
.yen-calc-input:focus { border-color: var(--accent); }
.yen-calc-result { background: var(--surface3); border-radius: 4px; padding: 10px 12px; }
.yen-calc-result-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.yen-calc-result-label { font-size: 10px; color: var(--text3); font-family: var(--mono); }
.yen-calc-result-val { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent2); }
.yen-calc-note { font-size: 9px; color: var(--text3); margin-top: 6px; }
.dp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 16px; }
.dp-gallery-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; cursor: zoom-in; transition: opacity .15s; display: block; }
.dp-gallery-img:hover { opacity: .85; }
.dp-gallery-main { grid-column: span 3; aspect-ratio: 16/9; border-radius: 4px; }
.dp-fav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r); background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); font-size: 12px; font-weight: 600; cursor: pointer; }
.dp-fav-btn.on { color: var(--red); border-color: var(--red); }
.atw-menu { position: absolute; z-index: 10000; background: var(--surface); border: 1px solid var(--border2); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.6); padding: 6px; min-width: 220px; }
.atw-item { padding: 9px 10px; border-radius: 5px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.atw-item:hover { background: var(--surface2); }
.atw-item.checked { color: var(--accent); }
.atw-new { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; font-size: 28px; color: #fff; cursor: pointer; opacity: .7; }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 36px; color: #fff; cursor: pointer; opacity: .6; padding: 12px; user-select: none; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-counter { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.6); }
.lightbox-thumbs { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; max-width: 90vw; overflow-x: auto; padding: 4px; }
.lightbox-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 3px; cursor: pointer; opacity: .5; border: 2px solid transparent; flex-shrink: 0; }
.lightbox-thumb.active { opacity: 1; border-color: var(--accent); }
.auth-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 99998; display: none; align-items: center; justify-content: center; }
.auth-overlay.open { display: flex; }
.auth-modal { position: relative; width: 340px; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 28px 24px 22px; }
.auth-close { position: absolute; top: 14px; right: 16px; cursor: pointer; color: var(--text3); font-size: 16px; }
.auth-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.auth-sub { font-size: 11px; color: var(--text3); margin-bottom: 18px; line-height: 1.5; }
.auth-input { width: 100%; height: 40px; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); padding: 0 12px; font-family: var(--sans); font-size: 13px; color: var(--text); outline: none; margin-bottom: 10px; }
.auth-input:focus { border-color: var(--accent); }
.auth-submit { width: 100%; height: 42px; background: var(--accent); color: #000; border: none; border-radius: var(--r); font-family: var(--sans); font-size: 13px; font-weight: 700; cursor: pointer; }
.auth-google { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #3c4043; border: none; border-radius: var(--r); font-family: var(--sans); font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 14px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--text3); font-size: 11px; margin-bottom: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; font-size: 11px; color: var(--text3); margin-top: 14px; }
.auth-switch a { color: var(--accent); cursor: pointer; }
.auth-msg { text-align: center; font-size: 11px; margin-top: 10px; min-height: 14px; }
.auth-msg.error { color: var(--red); }
.auth-msg.ok { color: var(--green); }
.profile-menu { position: fixed; top: 50px; right: 12px; width: 240px; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6); z-index: 9500; display: none; padding: 14px; }
.profile-menu.open { display: block; }
.profile-label { font-size: 10px; color: var(--text3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.profile-email { font-size: 13px; color: var(--text); margin: 4px 0 12px; word-break: break-all; }
.profile-signout { width: 100%; padding: 9px; background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); color: var(--text2); font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(60px); background: var(--surface2); border: 1px solid var(--border2); border-radius: var(--r); padding: 10px 18px; font-size: 12px; font-family: var(--mono); color: var(--text2); z-index: 9999; transition: transform .2s; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.notif-panel { position: fixed; top: 50px; right: 12px; width: 340px; max-height: 70vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.6); z-index: 9500; display: none; }
.notif-panel.open { display: block; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.notif-head span { font-size: 10px; font-weight: 600; color: var(--blue); cursor: pointer; }
.notif-empty { padding: 24px 14px; text-align: center; color: var(--text3); font-size: 12px; }

@media (max-width: 860px) {
  /* Same hamburger-dropdown nav as the other pages */
  header { padding: 0 12px; gap: 10px; }
  .logo-jp { display: none; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--surface); border-bottom: 1px solid var(--border2); padding: 6px; z-index: 200; transform: translateY(-150%); transition: transform .2s; pointer-events: none; }
  .main-nav.open { transform: translateY(0); pointer-events: all; }
  .nav-link { width: 100%; padding: 12px 14px; font-size: 14px; }
  .notif-panel { width: calc(100% - 24px); left: 12px; }
  .detail-panel { width: 100vw; max-height: 95vh; height: 95vh; border-radius: 12px 12px 0 0; border: none; top: auto; bottom: 0; left: 0; transform: translateY(4%); }
  .detail-panel.open { transform: translateY(0); }

  /* Compact discover card — everything visible without scrolling */
  .discover-view { padding: 8px 10px 20px; }
  .disco-head { margin-bottom: 8px; }
  .disco-thumbs { display: none; }
  .disco-img, .disco-ph { height: 140px; }
  .disco-body { padding: 8px 10px 6px; }
  .disco-loc { font-size: 10px; }
  .disco-title { font-size: 14px; margin: 2px 0 4px; line-height: 1.3; }
  .disco-price { font-size: 17px; margin-bottom: 4px; }
  .disco-specs { grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin: 6px 0; }
  .disco-spec { padding: 4px 6px; border-radius: 4px; }
  .disco-spec span { font-size: 9px; margin-bottom: 1px; }
  .disco-spec b { font-size: 11px; }
  .disco-pills { gap: 4px; margin-bottom: 4px; }
  .spec-pill { font-size: 10px; padding: 2px 6px; }
  /* Hide less critical info on mobile — full details on listing page */
  .disco-maps-link { display: none !important; }
  .disco-desc { display: none; }
  .disco-why { display: none; }
  .disco-open { padding: 5px 10px; font-size: 11px; margin-top: 4px; }
  /* On phones, swiping replaces the buttons — saves room so all info fits */
  .disco-actions { display: none; }
  .disco-hint { display: block; font-size: 11px; margin-top: 8px; text-align: center; }
}
