/* ============================================================
   Kanngongkanngoen — Place Detail Pages Design System
   Matches Kanngongkanngoen Brand Tokens:
   - Primary: Deep Emerald #0e382f / #07241e
   - Accent: Mint #059669 / #10b981
   - Canvas: #f8faf9, Surface: #ffffff, Line: #e2e8f0
   - Fonts: Prompt, IBM Plex Sans Thai, Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=Prompt:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #0e382f;
  --brand-strong: #07241e;
  --brand-accent: #059669;
  --brand-mint: #10b981;
  --brand-soft: #e6f4f0;
  --brand-line: #b3dfd4;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f8faf9;
  --surface: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(14, 56, 47, 0.06);
  --shadow-lg: 0 10px 30px rgba(14, 56, 47, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand, .btn, .badge {
  font-family: 'Prompt', 'Inter', -apple-system, sans-serif;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Breadcrumbs */
.crumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 8px 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.crumb a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.crumb a:hover {
  color: var(--brand-accent);
}

.crumb span {
  color: var(--muted);
}

/* Page Header */
h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin: 0.2em 0 0.1em;
  color: var(--brand);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.subname {
  color: var(--muted);
  margin: 0.1em 0 1em;
  font-size: 1.05rem;
  font-weight: 500;
}

/* Meta Badges */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.badge {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.badge.tax {
  background: #fefce8;
  color: #854d0e;
  border-color: #fef08a;
  font-weight: 700;
}

/* Hero Image */
.hero {
  margin: 0 0 28px;
}

.hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.hero figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}

.hero.placeholder {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* Sections */
section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}

h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand);
  border-bottom: 2px solid var(--brand-soft);
  padding-bottom: 8px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* Tax Deduction Box */
.taxbox {
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-left: 5px solid var(--brand-accent);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
}

.taxbox h2 {
  color: #065f46;
  border-bottom-color: #d1fae5;
}

.taxbox p {
  color: #1e3a8a;
  color: #064e3b;
  font-size: 0.95rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: #047857;
  opacity: 0.9;
  margin-top: 10px;
}

/* Visiting Hours */
.hours {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  max-width: 360px;
}

.hours li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.hours li span:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* Google Maps Button */
.gmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(14, 56, 47, 0.2);
  transition: all 0.15s ease;
  margin-top: 6px;
}

.gmap-btn:hover {
  background: var(--brand-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.gmap-btn--unavailable,
.gmap-btn--unavailable:hover {
  background: #64748b;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.coord {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
  font-family: var(--font-mono, monospace);
}

/* Video Slot */
.video .ytslot {
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.video .ytslot p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Hotel Booking Box (Trip.com) */
.hotel-booking-box {
  background: linear-gradient(135deg, #0e382f 0%, #165649 100%) !important;
  color: #ffffff !important;
  border-radius: var(--radius-lg) !important;
  padding: 24px !important;
  margin-top: 32px !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.hotel-booking-box h3 {
  color: #ffffff !important;
  font-size: 1.25rem;
  margin: 10px 0 6px !important;
  font-weight: 800;
}

.hotel-booking-box p {
  color: #d1fae5 !important;
  margin: 0 !important;
  font-size: 0.92rem;
}

.hotel-pill-badge {
  background: #34d399;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  display: inline-block;
}

.hotel-trip-btn {
  background: #34d399 !important;
  color: #064e3b !important;
  font-weight: 800 !important;
  padding: 12px 24px !important;
  border-radius: var(--radius-pill) !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-size: 0.95rem !important;
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.4) !important;
  transition: all 0.15s ease !important;
  white-space: nowrap;
}

.hotel-trip-btn:hover {
  background: #6ee7b7 !important;
  transform: translateY(-2px);
}

/* Shopee Products Box */
.shopee-products-box {
  background: #fffbf7 !important;
  border: 1px solid #fed7aa !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px !important;
  margin-top: 32px !important;
}

.shopee-head-title {
  color: #c2410c !important;
  font-size: 1.15rem !important;
  margin: 0 !important;
  font-weight: 700;
}

.shopee-tag {
  font-size: 0.75rem;
  background: #ee4d2d;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.shopee-disclaimer {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #9a3412;
  margin: 8px 0 16px !important;
}

.shopee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.shopee-card {
  display: block;
  background: #ffffff;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-md);
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.shopee-card:hover {
  border-color: #fb923c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shopee-card-title {
  display: block;
  color: #c2410c;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.shopee-card-desc {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.shopee-card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #ee4d2d;
  font-size: 0.85rem;
}

/* Related Guides */
.related-guides {
  background: #fdfefe !important;
  border: 1px solid var(--brand-line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px !important;
  margin-top: 32px !important;
}

.related-guides h3 {
  margin: 0 0 12px;
  color: var(--brand) !important;
  font-size: 1.1rem;
  font-weight: 700;
}

.related-guides ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.related-guides a {
  color: var(--brand-accent);
  text-decoration: none;
  font-weight: 500;
}

.related-guides a:hover {
  text-decoration: underline;
}

/* Call To Action (Kanngongkanngoen) */
.cta {
  background: var(--surface);
  border: 2px solid var(--brand-accent);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0e382f, #10b981);
}

.cta h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 800;
}

.cta p {
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 16px;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(14, 56, 47, 0.2);
  transition: all 0.15s ease;
}

.btn:hover {
  background: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

/* Nearby Attractions Grid */
.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.related a {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}

.related a:hover {
  border-color: var(--brand-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.related a strong {
  font-size: 0.95rem;
  color: var(--brand);
  margin-bottom: 4px;
}

.related a small {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .wrap {
    padding: 16px 14px 40px;
  }
  h1 {
    font-size: 1.65rem;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .hotel-booking-box > div {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .hotel-trip-btn {
    width: 100%;
    text-align: center;
  }
}
