:root {
  --green: #1b8a5a;
  --green-dark: #146343;
  --gold: #f3b23a;
  --bg: #050910;
  --bg-soft: #0b131f;
  --bg-muted: #101926;
  --text-main: #f5f7fb;
  --text-soft: #c3cad9;
  --card-bg: rgba(11, 19, 31, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius-lg: 18px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #20304a 0, #050910 55%, #020308 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

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

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

.hero {
  position: relative;
  min-height: 70vh;
  padding: 20px clamp(18px, 4vw, 40px) 80px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: radial-gradient(circle at top, #20304a 0, #050910 55%, #020308 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(54, 176, 117, 0.45), transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(5, 9, 16, 1));
  z-index: 1;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(11, 19, 31, 0.4);
  backdrop-filter: blur(16px);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-links a:hover {
  background: rgba(27, 138, 90, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-video {
    display: none;
  }
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  margin: 0 0 14px;
}

.hero-content p {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.search-bar {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr auto auto;
  column-gap: 10px;
  row-gap: 6px;
  padding: 14px 18px;
  background: rgba(5, 9, 16, 0.94);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(18px);
}

.search-bar input,
.search-bar select {
  border-radius: 999px;
  border: none;
  padding: 9px 14px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-main);
  outline: none;
}

.search-bar input::placeholder {
  color: rgba(195, 202, 217, 0.8);
}

.search-bar select {
  cursor: pointer;
}

.search-bar button {
  border-radius: 999px;
  border: none;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.search-bar button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.9);
}

.featured-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.featured-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.featured-toggle-switch {
  width: 32px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  position: relative;
  transition: background 0.15s ease;
}

.featured-toggle-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.featured-toggle input:checked + .featured-toggle-switch {
  background: linear-gradient(135deg, var(--gold), #ffcf70);
}

.featured-toggle input:checked + .featured-toggle-switch::before {
  transform: translateX(14px);
}

.featured-toggle-label {
  opacity: 0.9;
}

.results-count {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.section {
  padding: 50px clamp(18px, 4vw, 40px);
  max-width: 1200px;
  margin: 0 auto;
}

.section--muted {
  background: radial-gradient(circle at top, rgba(54, 176, 117, 0.1), transparent 60%),
    linear-gradient(to bottom, var(--bg-soft), #050910);
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.section-header p {
  margin: 0;
  color: var(--text-soft);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 0 0 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease,
    background 0.16s ease;
}

.card-media {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(243, 178, 58, 0.15), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.75);
  border-color: rgba(243, 178, 58, 0.55);
  background: linear-gradient(145deg, rgba(12, 22, 38, 0.96), rgba(7, 35, 26, 0.96));
}

.card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 16px 0;
}

.card-title {
  font-weight: 700;
  font-size: 1.03rem;
}

.card-location {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 0 16px;
}

.chip {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(5, 9, 16, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-soft);
}

.chip--type {
  background: rgba(27, 138, 90, 0.18);
  border-color: rgba(27, 138, 90, 0.7);
  color: #bef4d5;
}

.chip--region {
  background: rgba(131, 197, 255, 0.15);
  border-color: rgba(131, 197, 255, 0.7);
  color: #d2e9ff;
}

.chip--rating {
  background: rgba(243, 178, 58, 0.16);
  border-color: rgba(243, 178, 58, 0.75);
  color: #ffe9b9;
}

.card-description {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-top: 4px;
  padding: 0 16px;
}

.card-footer {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
  padding: 0 16px;
}

.card-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  text-decoration: underline;
}

.card-button {
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #ffcf70);
  color: #3a2b05;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.card-button:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.85);
}

.status-message {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.status-message--error {
  color: #ffb4ba;
}

.trip-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.trip-card {
  background: rgba(5, 9, 16, 0.95);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
}

.trip-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.trip-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.footer {
  text-align: center;
  padding: 22px 12px 26px;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-top: 1px solid var(--border-subtle);
  background: rgba(3, 6, 11, 0.98);
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .search-bar {
    grid-template-columns: 1fr;
    row-gap: 8px;
    border-radius: 18px;
  }
}

