/* ==============================================================
 * PLANIGO DESIGN SYSTEM - EXTERNAL STYLESHEET (style.css)
 * Palette: Warm Cream (#F8F6F0), Brand Teal (#007A78), Amber (#D97706)
 * Font: Plus Jakarta Sans
 * ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #F8F6F0;
    --brand-teal: #007A78;
    --brand-teal-dark: #006361;
    --brand-teal-light: #E6F2F2;
    --brand-amber: #D97706;
    --brand-amber-light: #FEF3C7;
    --border-color: #EFECE6;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --card-bg: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    min-height: 100vh;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Cards & Containers */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.card-banner {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.card-gradient {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 122, 122, 0.15);
}

/* Brand Typography */
.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-teal);
    text-decoration: none;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--brand-amber);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Buttons */
.btn-primary {
    background-color: var(--brand-teal);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0, 122, 122, 0.2);
}

.btn-primary:hover {
    background-color: var(--brand-teal-dark);
}

.btn-outline {
    border: 2px solid var(--brand-teal);
    color: var(--brand-teal);
    background: transparent;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background-color: var(--brand-teal);
    color: #ffffff;
}

/* Badges */
.badge-teal {
    background-color: var(--brand-teal-light);
    color: var(--brand-teal);
    border: 1px solid #B3DCDB;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-amber {
    background-color: var(--brand-amber-light);
    color: var(--brand-amber);
    border: 1px solid #FDE68A;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Navigation Bars */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar-admin {
    background-color: #004D4C;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.custom-table th {
    background-color: var(--bg-main);
    color: var(--brand-teal);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 1rem;
    border-bottom: 1px solid #F3F0E9;
    font-size: 0.875rem;
}

.custom-table tr:hover {
    background-color: #FBF9F5;
}

/* Auth Login Styling */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #FBF9F5;
    border: 1px solid #E5E0D8;
    border-radius: 1rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--brand-teal);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 122, 122, 0.15);
}

.alert-error {
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   HALAMAN JELAJAH & PLANNER (DASHBOARD USER)
   ========================================================================== */
.explore-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 5% 6rem;
}

.explore-header {
  margin-bottom: 1.8rem;
}

.explore-header h1 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--deep-sea-teal);
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.explore-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Search Bar Pill */
.search-bar-wrapper {
  background: var(--white);
  border-radius: 50px;
  padding: 0.9rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 1.6rem;
  transition: box-shadow 0.3s ease;
}

.search-bar-wrapper:focus-within {
  box-shadow: 0 10px 30px rgba(0, 128, 128, 0.14);
  border-color: var(--deep-sea-teal);
}

.search-bar-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: transparent;
}

/* Category Filter Pills */
.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.filter-pill-btn {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.filter-pill-btn:hover {
  transform: translateY(-2px);
  border-color: var(--deep-sea-teal);
  color: var(--deep-sea-teal);
}

.filter-pill-btn.active {
  background: var(--deep-sea-teal);
  color: var(--white);
  border-color: var(--deep-sea-teal);
  box-shadow: 0 6px 16px rgba(0, 128, 128, 0.25);
}

/* Section Title & Grid Rekomendasi */
.explore-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}

.explore-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.6rem;
}

.dest-card {
  background: var(--white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.dest-card.selected {
  border-color: var(--deep-sea-teal);
  background: #f4faf9;
}

.dest-card-img-wrap {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.dest-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dest-card:hover .dest-card-img-wrap img {
  transform: scale(1.05);
}

.dest-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-sea-teal);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.dest-rating-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #fbbf24;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.dest-card-body {
  padding: 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dest-card-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.dest-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.dest-desc {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dest-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid #f1f5f9;
}

.dest-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--deep-sea-teal);
}

.btn-select-item {
  background: #e6f4f1;
  color: var(--deep-sea-teal);
  border: 1px solid #cde8e2;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-select-item:hover {
  background: var(--deep-sea-teal);
  color: var(--white);
}

.dest-card.selected .btn-select-item {
  background: var(--deep-sea-teal);
  color: var(--white);
  border-color: var(--deep-sea-teal);
}

/* Floating Action Button (Lanjut: Data diri) */
.floating-next-btn {
  position: fixed;
  bottom: 28px;
  right: 32px;
  z-index: 950;
  background: linear-gradient(135deg, var(--deep-sea-teal) 0%, #006666 100%);
  color: var(--white);
  border: none;
  padding: 0.95rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 128, 128, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.floating-next-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 128, 128, 0.45);
}

.selected-counter-pill {
  background: var(--golden-sun);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
}