:root {
  --primary-green: #0FAF3D;
  --primary-green-hover: #0c9132;
  --dark-black: #0F0F0F;
  --light-bg: #FFFFFF;
  --secondary-gray: #F5F5F5;
  --text-main: #111111;
  --text-muted: #666666;
  --border-color: #E5E5E5;
  --card-bg: #FFFFFF;
  --sidebar-width: 250px;
  --right-sidebar-width: 300px;
}

[data-theme="dark"] {
  --light-bg: #121212;
  --secondary-gray: #1E1E1E;
  --text-main: #FFFFFF;
  --text-muted: #AAAAAA;
  --border-color: #333333;
  --card-bg: #1A1A1A;
  --dark-black: #FFFFFF; /* Inverts logic where appropriate */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
  background-color: var(--secondary-gray);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.btn-primary {
  background-color: var(--primary-green);
  color: white !important;
}
.btn-primary:hover {
  background-color: var(--primary-green-hover);
}
.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}
.text-green { color: var(--primary-green); }

/* Top Bar */
.top-bar {
  background-color: var(--light-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 0.4rem 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}
.top-links {
  display: flex;
  gap: 1.5rem;
}
.top-links a:hover { color: var(--primary-green); }

/* Theme Toggle */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .4s; border-radius: 34px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-green); }
input:checked + .slider:before { transform: translateX(20px); }

/* Main Navigation */
.main-nav {
  background-color: var(--light-bg);
  padding: 1rem 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.brand {
  display: flex;
  flex-direction: column;
}
.brand h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--primary-green);
}
.brand span {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-icons {
  display: flex;
  gap: 1.5rem;
}
.nav-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
}
.nav-icon svg { width: 20px; height: 20px; margin-bottom: 2px; color: var(--text-main); }
.nav-icon:hover, .nav-icon:hover svg { color: var(--primary-green); }

/* Layout Wrapper */
.container {
  display: flex;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 120px);
}

/* Left Sidebar */
.sidebar-left {
  width: var(--sidebar-width);
  background: var(--light-bg);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
}
.auth-widget {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.auth-widget .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #ddd; display: flex; align-items: center; justify-content: center; color: #555; font-weight: bold;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}
.side-nav a:hover, .side-nav a.active {
  background-color: var(--secondary-gray);
  color: var(--primary-green);
}
.side-nav svg { width: 18px; height: 18px; }

/* Main Column */
.main-content {
  flex: 1;
  padding: 1.5rem 2%;
  min-width: 0;
  background: var(--light-bg);
}

/* Big Search Bar */
.search-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 1rem;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.5rem;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
.category-pills::-webkit-scrollbar { display: none; }
.pill {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  white-space: nowrap;
  font-size: 0.85rem;
  background: var(--card-bg);
  color: var(--text-main);
}
.pill.active, .pill:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* Black Hero Banner */
.hero-banner {
  background-color: #0F0F0F;
  color: white;
  border-radius: 12px;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}
.hero-banner h2 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.5rem; color: var(--primary-green); }
.hero-banner p { font-size: 1.2rem; color: #ccc; }

/* AI Input Box */
.ai-box {
  background: var(--card-bg);
  border: 1px solid var(--primary-green);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.ai-input-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 0.5rem 1rem;
}
.ai-badge {
  background: rgba(15, 175, 61, 0.1);
  color: var(--primary-green);
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.ai-input-row input {
  flex: 1; border: none; background: transparent; outline: none; color: var(--text-main);
}
.ai-submit {
  background: var(--primary-green); color: white; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* Featured Destinations Grid (No Images) */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.section-header h3 { font-size: 1.2rem; font-weight: 700; }
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.place-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.place-card .tag {
  font-size: 0.7rem; font-weight: 700; color: var(--primary-green); text-transform: uppercase; margin-bottom: 0.5rem; background: rgba(15, 175, 61, 0.1); padding: 0.2rem 0.5rem; border-radius: 4px; display: inline-block; width: fit-content;
}
.place-card h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.place-card .location { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.place-card .desc { font-size: 0.9rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; flex: 1; }
.place-actions { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-color); padding-top: 1rem; }

/* Right Sidebar */
.sidebar-right {
  width: var(--right-sidebar-width);
  padding: 1.5rem;
  flex-shrink: 0;
  background: var(--light-bg);
  border-left: 1px solid var(--border-color);
}
.ad-banner {
  background-color: var(--primary-green);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: left;
  margin-bottom: 2rem;
}
.ad-banner h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.widget h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud span { background: var(--secondary-gray); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.8rem; color: var(--primary-green); }

@media (max-width: 1024px) { .sidebar-right { display: none; } }
@media (max-width: 768px) {
  .sidebar-left { display: none; }
  .top-links { display: none; }
  .hero-banner h2 { font-size: 1.8rem; }
}