/* ============================================
   KANKO - OVERVIEW + SPOT DETAIL PAGES
   ============================================ */

/* ---- Overview Grid ---- */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 220px;
  transition: all 0.2s;
}

.spot-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--green);
  color: var(--text);
}

.spot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spot-icon-wrap {
  width: 40px;
  height: 40px;
  background: #e8f5ed;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.spot-icon-wrap [data-lucide] { width: 20px; height: 20px; }

.spot-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.spot-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.spot-tag [data-lucide] { width: 10px; height: 10px; }
.spot-tag.free { background: #e8f5ed; color: var(--green); }
.spot-tag.paid { background: #fff3cd; color: #9a6700; }
.spot-tag.mixed { background: #e3f0ff; color: #1e4d8c; }
.spot-tag.time { background: var(--bg-alt); color: var(--text-light); }

.spot-card-body { flex: 1; overflow: hidden; }

.spot-card-body h3 {
  font-size: 0.95rem;
  color: var(--dark);
  font-family: var(--font-en);
  margin-bottom: 5px;
}

.spot-card-body p {
  font-size: 0.815rem;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.spot-transport {
  font-size: 0.77rem;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spot-transport [data-lucide] { width: 12px; height: 12px; }

.spot-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.spot-link [data-lucide] {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
}

.spot-card:hover .spot-link [data-lucide] { transform: translateX(3px); }


/* ============================================
   SPOT DETAIL PAGE — clean, readable, vertical
   ============================================ */

/* Hero banner — no photo, just gradient + icon */
.spot-detail-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--dark) 0%, #16423c 100%);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
}

.spot-detail-hero-icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.spot-detail-hero-icon [data-lucide] { width: 38px; height: 38px; }

.spot-detail-hero-content { color: white; }

.spot-detail-hero-content h1 {
  font-family: var(--font-en);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 14px;
}

.spot-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spot-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.spot-detail-tag [data-lucide] { width: 13px; height: 13px; }
.spot-detail-tag.green { background: rgba(45,122,79,0.7); color: white; }
.spot-detail-tag.yellow { background: rgba(232,184,75,0.35); color: var(--gold); }
.spot-detail-tag.blue { background: rgba(30,77,140,0.5); color: #a8c8f8; }

/* Body */
.spot-detail-body { padding: 56px 0 100px; }

.spot-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 500;
  transition: gap 0.2s;
}

.spot-back-link:hover { gap: 10px; color: var(--green); }
.spot-back-link [data-lucide] { width: 16px; height: 16px; }

/* Main description */
.spot-detail-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 48px;
  max-width: 760px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}

/* Info sections — stacked vertically, full width */
.spot-info-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.spot-info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Coloured header strip for each box */
.spot-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.spot-info-header.transport { background: #e8f5ed; }
.spot-info-header.backpack  { background: #fff8e1; }
.spot-info-header.tips      { background: #e3f0ff; }

.spot-info-header [data-lucide] { width: 20px; height: 20px; flex-shrink: 0; }
.spot-info-header.transport [data-lucide] { color: var(--green); }
.spot-info-header.backpack  [data-lucide] { color: #9a6700; }
.spot-info-header.tips      [data-lucide] { color: #1e4d8c; }

.spot-info-header h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

/* List items inside each box */
.spot-info-box ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.spot-info-box ul li {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spot-info-box ul li:last-child { border-bottom: none; }

.spot-info-box ul li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Responsive */
@media (max-width: 900px) {
  .spot-grid { grid-template-columns: repeat(2, 1fr); }
  .spot-detail-hero { padding: 40px 24px; gap: 20px; }
  .spot-detail-hero-content h1 { font-size: 1.8rem; }
  .spot-detail-hero-icon { width: 60px; height: 60px; }
  .spot-detail-hero-icon [data-lucide] { width: 28px; height: 28px; }
}

/* ---- Spot Detail — Photo + Description side by side ---- */
.spot-detail-body .container {
  display: grid;
  grid-template-columns: 340px 1fr;
  grid-template-areas:
    "back  back"
    "photo desc"
    "info  info";
  column-gap: 36px;
}

.spot-back-link       { grid-area: back; }
.spot-detail-photo-wrap { grid-area: photo; align-self: start; }
.spot-detail-desc     { grid-area: desc; margin-bottom: 0; max-width: none; }
.spot-info-stack      { grid-area: info; margin-top: 40px; }

.spot-detail-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.photo-credit {
  font-size: 0.72rem;
  color: #aaa;
  text-align: right;
  padding: 4px 0 0;
  margin: 0;
}

@media (max-width: 860px) {
  .spot-detail-body .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "back"
      "photo"
      "desc"
      "info";
  }
  .spot-detail-photo { aspect-ratio: 16 / 9; }
  .spot-detail-desc { margin-top: 0; }
}

@media (max-width: 600px) {
  .spot-grid { grid-template-columns: 1fr; }
  .spot-card { height: auto; min-height: 200px; }
  .spot-detail-hero { flex-direction: column; align-items: flex-start; padding: 32px 20px; }
  .spot-detail-hero-content h1 { font-size: 1.5rem; }
  .spot-info-box ul li { padding: 12px 20px; font-size: 0.875rem; }
  .spot-info-header { padding: 14px 20px; }
  .spot-detail-desc { padding: 20px; font-size: 0.925rem; }
}