/* ==========================================================================
   Mini Zoo Kundasang — Editorial Nature-Tourism Design System
   Palette: Deep Pine Forest, Warm Stone Ivory, Highland Earth, Subtle Brass
   Typography: Cormorant Garamond (Editorial Serif) + Plus Jakarta Sans (Body)
   ========================================================================== */

:root {
  --color-forest-dark: #0e1e16;
  --color-forest: #172d21;
  --color-forest-medium: #234232;
  --color-forest-light: #365b47;
  
  --color-ivory-light: #fbf9f5;
  --color-ivory: #f4f0e6;
  --color-ivory-dark: #eae4d5;
  
  --color-stone-100: #e5e0d3;
  --color-stone-200: #cfc8b8;
  --color-stone-300: #b5ad9b;
  --color-stone-700: #4a4539;
  --color-stone-800: #332f26;
  --color-stone-900: #1f1d17;

  --color-earth-accent: #a06d3b;
  --color-earth-hover: #88592d;
  --color-earth-light: #f7ede2;

  --color-danger: #992b2b;
  --color-danger-bg: #faeded;
  --color-success: #20603d;
  --color-success-bg: #edf7f0;
  --color-warning: #855b14;
  --color-warning-bg: #fdf8ed;

  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 25px -5px rgba(23, 45, 33, 0.04);
  --shadow-elevated: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 20px 30px -10px rgba(23, 45, 33, 0.08);
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-ivory-light);
  color: var(--color-stone-800);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Headings & Typography */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--color-forest-dark);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  color: #3f3b33;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-forest-medium);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--color-earth-accent);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

/* Top Notification / Notice Bar */
.notice-strip {
  background-color: var(--color-forest-dark);
  color: var(--color-stone-200);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.notice-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Header & Navigation */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #172d21 0%, #234232 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 2px 4px rgba(23, 45, 33, 0.15);
  flex-shrink: 0;
}
.brand-info {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.brand-sub {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 2px;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--color-forest-dark);
  background-color: #f1f5f9;
}
.nav-link.active {
  color: var(--color-forest);
  font-weight: 600;
  background-color: #edf5f0;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 2px;
  white-space: nowrap;
}
.lang-btn {
  color: #64748b;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1.2;
}
.lang-btn:hover {
  color: var(--color-forest-dark);
}
.lang-btn.active {
  background-color: #ffffff;
  color: var(--color-forest-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.lang-divider {
  color: #cbd5e1;
  font-size: 0.65rem;
  user-select: none;
}

/* Scroll to Top Floating Button */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background-color: var(--color-forest);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background-color: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Mobile Toggle & Cluster */
.mobile-only-flex {
  display: none;
}
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  padding: 8px;
  color: var(--color-forest-dark);
}

/* Mobile Drawer */
.nav-mobile-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: var(--shadow-elevated);
}
.mobile-links {
  list-style: none;
  padding: 1rem 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-link {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
}
.mobile-link.active {
  background-color: #edf5f0;
  color: var(--color-forest);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--color-forest);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--color-forest-dark);
  color: #ffffff;
  border-color: var(--color-forest-dark);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-forest);
  border-color: var(--color-stone-200);
}
.btn-secondary:hover {
  border-color: var(--color-forest);
  background-color: var(--color-ivory);
}

.btn-accent {
  background-color: var(--color-earth-accent);
  color: #ffffff;
}
.btn-accent:hover {
  background-color: var(--color-earth-hover);
  color: #ffffff;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.45rem 0.85rem;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.95rem 1.85rem;
}

.btn-block {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--color-forest-dark);
  color: #ffffff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: contrast(1.1) brightness(0.9);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(14, 30, 22, 0.92) 0%, rgba(14, 30, 22, 0.75) 50%, rgba(14, 30, 22, 0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-stone-200);
  margin-bottom: 1.25rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-title {
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--color-stone-100);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Status Cards & Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(133, 91, 20, 0.2);
}
.badge-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(32, 96, 61, 0.2);
}
.badge-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(153, 43, 43, 0.2);
}
.badge-stone {
  background-color: var(--color-ivory);
  color: var(--color-stone-700);
  border: 1px solid var(--color-stone-200);
}

/* Sections */
.section {
  padding: 5rem 0;
}
.section-alt {
  background-color: var(--color-ivory);
  border-top: 1px solid var(--color-stone-100);
  border-bottom: 1px solid var(--color-stone-100);
}
.section-header {
  margin-bottom: 3rem;
  max-width: 650px;
}
.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-earth-accent);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--color-stone-700);
  font-size: 1.05rem;
}

/* Grid & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-stone-100);
  border-radius: var(--radius-sm);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--color-stone-200);
  box-shadow: var(--shadow-elevated);
}

.card-figure {
  margin: -2rem -2rem 1.5rem -2rem;
  overflow: hidden;
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}
.card-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-figure img {
  transform: scale(1.03);
}

/* Pricing Grid */
.price-table {
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--color-stone-100);
}
.price-row:last-child {
  border-bottom: none;
}
.price-name {
  font-weight: 600;
  color: var(--color-forest-dark);
  font-size: 1.05rem;
}
.price-note {
  font-size: 0.8125rem;
  color: var(--color-stone-700);
  margin-top: 2px;
}
.price-tag {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-forest);
}

/* Callouts & Advisories */
.advisory-box {
  background-color: #ffffff;
  border-left: 3px solid var(--color-forest);
  border-top: 1px solid var(--color-stone-100);
  border-right: 1px solid var(--color-stone-100);
  border-bottom: 1px solid var(--color-stone-100);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.advisory-title {
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  margin-bottom: 0.35rem;
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--color-stone-700);
  margin-top: 0.25rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-stone-900);
  background-color: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(35, 66, 50, 0.1);
}
.form-control[readonly], .form-control:disabled {
  background-color: var(--color-ivory);
  cursor: not-allowed;
}

/* Stepper & Quantity Selector */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.qty-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-forest-dark);
  transition: var(--transition);
}
.qty-btn:hover:not(:disabled) {
  background-color: var(--color-ivory);
}
.qty-btn:disabled {
  color: var(--color-stone-300);
  cursor: not-allowed;
}
.qty-input {
  width: 50px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--color-stone-100);
  border-right: 1px solid var(--color-stone-100);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-stone-900);
}

/* Capacity Indicator Badge */
.capacity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}
.capacity-pill.available {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}
.capacity-pill.low {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
}
.capacity-pill.full {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.alert-danger {
  background-color: var(--color-danger-bg);
  color: var(--color-danger);
  border: 1px solid rgba(153, 43, 43, 0.25);
}
.alert-success {
  background-color: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(32, 96, 61, 0.25);
}
.alert-warning {
  background-color: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid rgba(133, 91, 20, 0.25);
}

/* Table */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-sm);
  background: #ffffff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.data-table th {
  background-color: var(--color-ivory);
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--color-forest-dark);
  border-bottom: 1px solid var(--color-stone-200);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-stone-100);
  color: var(--color-stone-800);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background-color: var(--color-ivory-light);
}

/* Footer */
.site-footer {
  background-color: var(--color-forest-dark);
  color: var(--color-stone-200);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.footer-title {
  color: #ffffff;
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: var(--color-stone-200);
  font-size: 0.875rem;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-stone-300);
}

/* E-Ticket Pass Styling */
.ticket-pass {
  background: #ffffff;
  border: 1px solid var(--color-stone-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  max-width: 650px;
  margin: 0 auto;
  overflow: hidden;
}
.ticket-header {
  background-color: var(--color-forest-dark);
  color: #ffffff;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ticket-body {
  padding: 2rem;
}
.ticket-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px dashed var(--color-stone-200);
}
.ticket-meta-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-stone-700);
  margin-bottom: 0.25rem;
}
.ticket-meta-item span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-forest-dark);
}
.ticket-qr-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background-color: var(--color-ivory);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 1040px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .nav-desktop {
    display: none;
  }
  .mobile-only-flex {
    display: flex !important;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-mobile-drawer.mobile-open {
    display: block;
  }
}

@media print {
  .site-header, .site-footer, .notice-strip, .btn, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
  .ticket-pass {
    box-shadow: none;
    border: 1px solid #000000;
    max-width: 100%;
  }
}
