:root {
  --primary: #463d38;
  --accent: #C9A227;
  --ink: #1F2937;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --soft: #FAF7F1;
  --line: #E5E7EB;
  --radius: 18px;
}

.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary);
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

.map-container {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(70, 61, 56, 0.15);
}

#terengganuMap {
  width: 100%;
  height: 100%;
}

/* Popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.popup-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
}

.popup-category {
  background: rgba(201, 162, 39, 0.15);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.popup-description,
.popup-facilities,
.popup-why {
  margin: 8px 0;
  line-height: 1.5;
}

.popup-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.popup-image {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn-interest,
.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-interest {
  background: var(--accent);
  color: var(--primary);
}

.btn-interest:hover {
  background: #b8941f;
  transform: translateY(-1px);
}

.btn-directions {
  background: var(--primary);
  color: #fff;
}

.btn-directions:hover {
  background: #3a3129;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .map-container {
    height: 60vh;
  }

  .popup-actions {
    flex-direction: column;
  }

  .btn-interest,
  .btn-directions {
    justify-content: center;
  }
}
