:root {
  --dark: #0f2b4f;
  --sand: #f7f2eb;
  --accent: #f28a2a;
  --accent-2: #1f5aa6;
  --light: #ffffff;
  --shadow: rgba(15, 43, 79, 0.12);
  --font-head: "Cormorant Garamond", serif;
  --font-body: "Space Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: radial-gradient(circle at top, #fff1e2, #ffffff 60%, #ffffff 100%);
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font-family: var(--font-body);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 43, 79, 0.08);
  margin-top: 0;
  box-shadow: 0 10px 20px rgba(15, 43, 79, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  min-height: 64px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}

.logo img {
  height: 52px;
  width: auto;
  border-radius: 0;
}

.logo-text {
  font-weight: 700;
  color: var(--accent-2);
}

.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav .btn {
  padding: 10px 18px;
}

.user-menu {
  position: relative;
}

.user-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(15, 43, 79, 0.2);
  background: var(--light);
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.user-toggle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 90, 166, 0.15);
  color: var(--accent-2);
  font-weight: 700;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 52px;
  background: var(--light);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(15, 43, 79, 0.18);
  padding: 12px;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 8px;
}

.user-dropdown.open {
  display: flex;
}

.user-dropdown a {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.user-dropdown a:hover {
  background: rgba(31, 90, 166, 0.08);
}

.user-meta {
  display: grid;
  gap: 4px;
  padding: 6px 10px 10px;
  border-bottom: 1px solid rgba(15, 43, 79, 0.08);
}

.profile-preview {
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-preview img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-preview .avatar-fallback {
  width: 80px;
  height: 80px;
  font-size: 1.6rem;
}

.currency-btn {
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--dark);
  color: var(--light);
  padding: 8px 12px;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--light);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 12px 24px rgba(242, 138, 42, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-top: 12px;
}

.btn.ghost {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(15, 43, 79, 0.2);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  filter: saturate(1.1);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide:nth-child(1) {
  background-image: url('https://images.unsplash.com/photo-1544986581-efac024faf62?auto=format&fit=crop&w=1600&q=80');
}

.hero-slide:nth-child(2) {
  background-image: url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80');
}

.hero-slide:nth-child(3) {
  background-image: url('https://images.unsplash.com/photo-1506929562872-bb421503ef21?auto=format&fit=crop&w=1600&q=80');
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(15, 43, 79, 0.85), rgba(15, 43, 79, 0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  color: var(--light);
  padding: 80px 0;
}

.hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}

.hero-card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  min-height: 88px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.badge-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.badge-icon svg {
  width: 26px;
  height: 26px;
}

.hero-badge p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.features {
  padding: 80px 0 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--light);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 12px 30px var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  animation: rise 1s ease forwards;
}

.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.feature-card a {
  color: var(--accent);
  font-weight: 600;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.featured, .trip-list {
  padding: 40px 0 80px;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.trip-card {
  background: var(--light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.trip-card:hover {
  transform: translateY(-6px);
}

.trip-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.trip-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.trip-card-body h3 {
  margin: 4px 0 6px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.trip-card-body p {
  margin: 0;
  color: rgba(15, 43, 79, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trip-meta {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-top: auto;
}

.trip-card details {
  margin-top: 6px;
}

.trip-card summary {
  cursor: pointer;
  font-weight: 600;
}

.trip-card summary::-webkit-details-marker {
  display: none;
}

.tag {
  display: inline-block;
  background: rgba(242, 138, 42, 0.18);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.contact {
  padding: 80px 0;
  background: linear-gradient(120deg, #f7f2eb, #fff1e2);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.contact-form {
  background: var(--light);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 28px var(--shadow);
}

.contact-form label,
.form-grid label,
.filter-form input,
.filter-form select {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 8px;
}

input, textarea, select {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 43, 79, 0.2);
  font-family: var(--font-body);
}

.form-error {
  background: rgba(197, 63, 63, 0.1);
  padding: 12px;
  border-radius: 12px;
  color: #a62424;
}

.form-success {
  background: rgba(27, 94, 91, 0.12);
  padding: 12px;
  border-radius: 12px;
  color: #1b5e5b;
}

.site-footer {
  background: var(--dark);
  color: var(--light);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.copyright {
  text-align: center;
  opacity: 0.7;
  margin-top: 24px;
}

.auth {
  padding: 80px 0;
}

.auth-card {
  max-width: 520px;
  background: var(--light);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 12px 28px var(--shadow);
}

.dashboard {
  padding: 60px 0;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-card {
  background: var(--light);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 24px var(--shadow);
}

.stat-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: rgba(15, 43, 79, 0.7);
}

.stat-card p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  background: var(--light);
  border-radius: 16px;
  box-shadow: 0 12px 28px var(--shadow);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 43, 79, 0.08);
}

.actions {
  display: flex;
  gap: 8px;
}

.actions form button {
  background: transparent;
  border: none;
  color: #a62424;
  cursor: pointer;
  font-weight: 600;
}

.form-page {
  max-width: 760px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.category-hero {
  padding: 20px 0 24px;
  background: linear-gradient(120deg, rgba(242, 138, 42, 0.08), rgba(31, 90, 166, 0.08));
  position: relative;
  overflow: hidden;
}

.category-hero::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(31, 90, 166, 0.12);
  top: -240px;
  right: -200px;
}

.category-hero .container {
  position: relative;
  z-index: 1;
}

.category-hero .eyebrow {
  margin: 0 0 10px;
}

.category-hero h1 {
  margin: 0 0 10px;
}

.category-hero p {
  margin: 0;
}

.filters {
  padding: 24px 0 36px;
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.empty-state {
  padding: 20px;
  background: rgba(15, 43, 79, 0.05);
  border-radius: 12px;
}

.trip-detail {
  padding: 80px 0;
}

.trip-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.trip-detail-card {
  background: var(--light);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 12px 28px var(--shadow);
}

.trip-actions {
  margin-top: 20px;
}

.trip-section {
  margin-top: 32px;
  background: var(--light);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 12px 24px var(--shadow);
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--accent-2);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
  z-index: 200;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 43, 79, 0.6);
}

.modal-card {
  position: relative;
  background: var(--light);
  padding: 24px;
  border-radius: 20px;
  width: min(520px, 92%);
  z-index: 1;
  box-shadow: 0 20px 50px rgba(15, 43, 79, 0.35);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-subtitle {
  margin: 8px 0 16px;
  color: rgba(15, 43, 79, 0.7);
}

.currency-form {
  display: grid;
  gap: 16px;
}

@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: 64px;
    right: 0;
    background: var(--light);
    flex-direction: column;
    padding: 20px;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px var(--shadow);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 60px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }
}
