﻿/* ===== Spot Individual Page ===== */

body.sp-body {
  overflow: auto;
  background: var(--washi);
  color: var(--sumi);
  min-height: 100vh;
}

.sp-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 52px;
  background: var(--ai);
  border-bottom: 3px solid var(--kin);
}
.sp-nav-back {
  color: var(--kin-light); font-size: 13px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.04em; transition: color .15s;
}
.sp-nav-back:hover { color: #fff; }
.sp-lang-switcher { display: flex; gap: 4px; }
.sp-lang {
  padding: 5px 11px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.65);
  font-size: 11px; cursor: pointer; transition: all .15s; font-weight: 500;
}
.sp-lang.active, .sp-lang:hover {
  background: var(--kin); color: var(--sumi);
  border-color: var(--kin); font-weight: 700;
}

.sp-hero {
  position: relative; height: 320px; overflow: hidden;
  border-bottom: 3px solid var(--cat-color, var(--kin));
}
.sp-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.sp-hero-fallback { width: 100%; height: 100%; }
.sp-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,25,22,.85) 0%, rgba(28,25,22,.2) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px 32px;
}
.sp-hero-icon { font-size: 40px; margin-bottom: 8px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.sp-hero-title {
  font-family: var(--font-serif); font-size: 28px; font-weight: 700;
  color: #FEFCF8; line-height: 1.2; margin: 0 0 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.sp-hero-ja {
  font-family: var(--font-serif); font-size: 14px;
  color: rgba(255,255,255,.75); margin: 0 0 8px; letter-spacing: 0.06em;
}
.sp-hero-highlight {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--kin-light); background: rgba(0,0,0,.4);
  padding: 4px 10px; border-radius: 3px; letter-spacing: 0.04em;
  border-left: 3px solid var(--kin);
}

.sp-main { max-width: 720px; margin: 0 auto; padding: 28px 24px 60px; }

.sp-cat-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sp-cat-badge { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; }
.sp-hashtags { display: flex; flex-wrap: wrap; gap: 5px; }
.sp-tag { font-size: 11px; color: var(--ai-light); font-weight: 500; }

.sp-desc { font-size: 15px; color: var(--sumi-mid); line-height: 1.85; margin-bottom: 28px; border-left: 3px solid var(--kin); padding-left: 16px; }

.sp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.sp-info-cell { background: #FFFDF8; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.sp-info-cell--wide { grid-column: 1 / -1; }
.sp-info-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.sp-info-val { font-size: 13px; color: var(--sumi-mid); line-height: 1.6; }

.sp-tip { background: #FFF8F0; border: 1px solid #E8CEAD; border-left: 4px solid var(--kin); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.sp-tip-label { font-size: 10px; font-weight: 700; color: var(--kin); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.sp-tip-text { font-size: 13px; color: var(--sumi-mid); line-height: 1.75; }

.sp-photo { background: #F0F4FA; border: 1px solid #C4D0E4; border-left: 4px solid var(--ai); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 28px; }
.sp-photo-label { font-size: 10px; font-weight: 700; color: var(--ai); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.sp-photo-text { font-size: 13px; color: var(--sumi-mid); line-height: 1.75; }

/* Photo Gallery */
.sp-gallery { display: grid; gap: 6px; margin-bottom: 28px; border-radius: 8px; overflow: hidden; }
.sp-gallery--1 { grid-template-columns: 1fr; }
.sp-gallery--2 { grid-template-columns: 2fr 1fr; }
.sp-gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 120px 120px; }
.sp-gallery-item { position: relative; overflow: hidden; cursor: zoom-in; background: #eee; min-height: 120px; }
.sp-gallery--1 .sp-gallery-item { min-height: 240px; }
.sp-gallery--2 .sp-gallery-item { min-height: 180px; }
.sp-gallery--3 .sp-gallery-item:first-child { grid-row: 1 / 3; }
.sp-gallery-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.sp-gallery-item:hover .sp-gallery-img { transform: scale(1.04); }
.sp-gallery-zoom { position: absolute; bottom: 6px; right: 8px; background: rgba(0,0,0,.45); color: #fff; font-size: 14px; border-radius: 3px; padding: 2px 5px; pointer-events: none; }

/* Lightbox */
.sp-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.93); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sp-lightbox.open { opacity: 1; pointer-events: all; }
.sp-lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
.sp-lightbox-close { position: absolute; top: 14px; right: 18px; color: rgba(255,255,255,.8); font-size: 30px; cursor: pointer; background: none; border: none; line-height: 1; padding: 4px; }
.sp-lightbox-close:hover { color: #fff; }
.sp-lightbox-prev, .sp-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.75); font-size: 22px; cursor: pointer; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: 10px 14px; border-radius: 4px; transition: background .15s; }
.sp-lightbox-prev:hover, .sp-lightbox-next:hover { background: rgba(255,255,255,.2); color: #fff; }
.sp-lightbox-prev { left: 12px; }
.sp-lightbox-next { right: 12px; }
.sp-lightbox-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.5); font-size: 12px; }

/* Share buttons */
.sp-share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sp-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; border: none; font-family: inherit; transition: all .15s; flex: 1; justify-content: center; min-width: 90px; }
.sp-share-x { background: #0f0f0f; color: #fff; }
.sp-share-x:hover { background: #333; }
.sp-share-insta { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.sp-share-insta:hover { opacity: .85; }
.sp-share-copy { background: var(--ai); color: #fff; }
.sp-share-copy:hover { background: var(--ai-light); }

/* Copy toast */
.sp-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px); background: #1C1916; color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; z-index: 10000; }
.sp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.sp-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all .15s; border: none; letter-spacing: 0.02em; }
.sp-btn--maps { background: #F0F7F0; border: 1px solid #9DC49D; color: var(--matcha); flex: 1; justify-content: center; }
.sp-btn--maps:hover { background: #E4F0E4; box-shadow: 0 2px 8px rgba(74,124,89,.2); }
.sp-btn--website { background: #F5F0FA; border: 1px solid #C4A8E0; color: #5B2D8E; flex: 1; justify-content: center; }
.sp-btn--website:hover { background: #EDE5F8; }

.sp-map-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: var(--radius); border: 2px dashed var(--border); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: all .15s; }
.sp-map-link:hover { border-color: var(--beni); color: var(--beni); background: #fff7f7; }

.sp-footer { text-align: center; padding: 20px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--border); background: var(--washi-dark); }
.sp-footer a { color: var(--ai-light); text-decoration: none; font-weight: 600; }
.sp-footer a:hover { color: var(--beni); }

@media (max-width: 600px) {
  .sp-hero { height: 240px; }
  .sp-hero-title { font-size: 22px; }
  .sp-hero-overlay { padding: 20px 18px; }
  .sp-main { padding: 20px 16px 48px; }
  .sp-info-grid { grid-template-columns: 1fr; }
  .sp-info-cell--wide { grid-column: 1; }
  .sp-desc { font-size: 14px; }
  .sp-actions { flex-direction: column; }
  .sp-btn { flex: none; width: 100%; }
}
