/* =========================================================
   STYLE.CSS
   Palette: warm terracotta + cream + dark charcoal
   Font: Plus Jakarta Sans
   ========================================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Pastikan elemen dengan [hidden] attribute benar-benar tidak tampil */
[hidden] {
  display: none !important;
}

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --border: #e8e2da;
  --text: #1a1714;
  --text-muted: #6b6259;
  --accent: #c0552a;
  --accent-lt: #f5ede8;
  --radius: 10px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 58px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.city-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-city-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 14px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-city-btn:hover {
  color: var(--text);
  background: var(--accent-lt);
}

.nav-city-btn.active {
  color: var(--accent);
  background: var(--accent-lt);
  border-color: #e0b9aa;
}

.nav-city-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Hero --- */
.hero {
  background: #f0ebe4;
  border-bottom: 1px solid var(--border);
  padding: 56px 20px 48px;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
}

/* --- Main Content --- */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.dest-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 3px 10px;
  border-radius: 20px;
}

.search-box {
  flex: 1;
  max-width: 320px;
  min-width: 220px;
}

.search-input {
  width: 100%;
  padding: 7px 14px;
  font-family: var(--font);
  font-size: 0.855rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-lt);
}

.search-input::placeholder {
  color: #9c9287;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-chip {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.filter-chip:hover {
  color: var(--text);
  border-color: #c5bdb5;
}

.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.dest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.dest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.dest-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #e0d9d0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.dest-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(26, 23, 20, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.card-info {
  padding: 16px;
}

.card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card-city-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-info p {
  font-size: 0.855rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  gap: 8px;
}

.card-open {
  text-align: right;
}

/* --- Empty State --- */
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
}

.btn-reset {
  margin-top: 14px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-reset:hover {
  opacity: 0.9;
}

.btn-reset:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}


/* --- Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 23, 20, 0.55);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-box {
  background: var(--surface);
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(26, 23, 20, 0.6);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: rgba(26, 23, 20, 0.85);
}

.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.modal-body {
  padding: 24px;
}

.modal-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.modal-city {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.meta-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--text);
}

.meta-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-block ul li {
  font-size: 0.855rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.meta-block:first-child ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: 700;
}

.meta-block:last-child ul li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: #c62828;
  font-weight: 700;
}

.modal-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 10px 14px;
  font-size: 0.855rem;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
  flex-shrink: 0;
}

.info-row span:last-child {
  color: var(--text-muted);
}

.tips-row span:last-child {
  color: var(--text);
  font-style: italic;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-action {
  flex: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  padding: 8px 16px;
}

.btn-maps {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

.btn-maps:hover {
  background: #a9451e;
  border-color: #a9451e;
}

.btn-copy {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid #e0b9aa;
}

.btn-copy:hover {
  background: var(--accent-lt);
}

.btn-action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Toast Notice --- */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: #1a1714;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 0.855rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  animation: toastFadeIn 0.2s ease-out;
}

@keyframes toastFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 20px;
    align-items: flex-start;
    gap: 8px;
  }

  .city-nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .city-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    padding: 36px 20px 32px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .search-box {
    width: 100%;
    max-width: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .modal-meta {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-body {
    padding: 16px;
  }
}