:root {
  --font-display: "Sora", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --ink-900: #1f2a2a;
  --ink-700: #3f4d4a;
  --ink-500: #63736f;
  --ink-200: #dfe7e4;

  --paper: #fffef8;
  --card: #ffffff;
  --mint-50: #eef7f3;
  --mint-200: #c8ddd6;
  --mint-500: #3f8f79;
  --mint-700: #2d6556;

  --coral-100: #ffe7de;
  --coral-400: #ff8f67;
  --coral-600: #de5f34;

  --danger-600: #b32f2f;
  --notice-bg: #eaf7f0;
  --notice-ink: #235e49;
  --alert-bg: #fff0ec;
  --alert-ink: #8b2d19;

  --shadow-sm: 0 8px 24px rgba(33, 52, 49, 0.08);
  --shadow-md: 0 22px 60px rgba(33, 52, 49, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  line-height: 1.5;
  background:
    radial-gradient(circle at 8% 0%, #ffe4d8 0%, rgba(255, 228, 216, 0) 40%),
    radial-gradient(circle at 90% 8%, #d9f0e8 0%, rgba(217, 240, 232, 0) 36%),
    linear-gradient(160deg, #fffef8 0%, #f4fbf8 100%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--mint-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-600);
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 254, 248, 0.85);
  border-bottom: 1px solid rgba(63, 143, 121, 0.15);
}

.topbar__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink-900);
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 0.18rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral-400), var(--mint-500));
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  text-decoration: none;
  color: var(--ink-700);
  font-weight: 600;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--mint-700);
  background: rgba(63, 143, 121, 0.08);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.58rem;
  background: var(--mint-50);
  border: 1px solid var(--mint-200);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--ink-700);
}

.page-content {
  padding-block: 1.4rem 2.6rem;
  animation: fade-up 350ms ease;
}

.flash {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.9rem;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.flash--notice {
  background: var(--notice-bg);
  color: var(--notice-ink);
  border-color: rgba(35, 94, 73, 0.2);
}

.flash--alert {
  background: var(--alert-bg);
  color: var(--alert-ink);
  border-color: rgba(139, 45, 25, 0.25);
}

.page-head {
  margin-bottom: 1rem;
}

.page-title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin-bottom: 0.35rem;
}

.page-subtitle {
  color: var(--ink-500);
  max-width: 65ch;
}

.card,
.section-card,
.form-card,
.destination-card,
.tip-card,
.chat-message,
.empty-state {
  background: var(--card);
  border: 1px solid rgba(63, 143, 121, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.section-card,
.form-card,
.destination-card,
.tip-card,
.empty-state {
  padding: 1rem;
}

.section-stack {
  display: grid;
  gap: 1rem;
}

.destination-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1rem;
}

.destination-card {
  display: grid;
  gap: 0.55rem;
  transition: transform 150ms ease, box-shadow 200ms ease;
}

.destination-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.destination-card__title {
  font-size: 1.1rem;
}

.destination-card__meta {
  color: var(--ink-500);
}

.destination-summary {
  color: var(--ink-700);
}

.destination-hero {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(240, 250, 245, 0.95)),
    linear-gradient(90deg, rgba(255, 143, 103, 0.18), rgba(63, 143, 121, 0.15));
  border: 1px solid rgba(63, 143, 121, 0.16);
  box-shadow: var(--shadow-md);
}

.destination-hero__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.65rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.pill {
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 143, 121, 0.2);
  background: var(--mint-50);
  font-size: 0.85rem;
  color: var(--ink-700);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.button_to {
  margin: 0;
}

.inline-actions .button_to,
.tip-actions .button_to,
.chat-message .button_to {
  display: inline-block;
}

.btn,
button,
input[type="submit"] {
  font-family: var(--font-display);
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.52rem 0.95rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.btn:disabled,
button:disabled,
input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.btn--primary,
button,
input[type="submit"] {
  background: linear-gradient(90deg, var(--mint-500), var(--mint-700));
  color: #fff;
  box-shadow: 0 8px 18px rgba(45, 101, 86, 0.25);
}

.btn--ghost {
  background: #fff;
  border-color: rgba(63, 143, 121, 0.22);
  color: var(--mint-700);
  text-decoration: none;
}

.btn--danger {
  background: var(--danger-600);
  color: #fff;
}

.btn--small {
  font-size: 0.82rem;
  padding: 0.38rem 0.7rem;
}

.filters-card {
  margin-top: 1rem;
  padding: 1rem;
}

.filters-grid,
.form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.field-group {
  display: grid;
  gap: 0.3rem;
}

.form-label {
  font-weight: 600;
  color: var(--ink-700);
}

.text-input,
.text-area,
.select-input,
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"],
textarea,
select {
  width: 100%;
  border: 1px solid rgba(63, 143, 121, 0.25);
  border-radius: 11px;
  padding: 0.54rem 0.64rem;
  background: #fff;
  color: var(--ink-900);
  font-family: var(--font-body);
}

.text-area,
textarea {
  resize: vertical;
  min-height: 92px;
}

.text-input:focus,
.text-area:focus,
.select-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(63, 143, 121, 0.33);
  border-color: transparent;
}

.form-actions {
  margin-top: 0.8rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.error-box {
  margin-bottom: 0.9rem;
  background: #fff2ef;
  border: 1px solid rgba(179, 47, 47, 0.3);
  color: #8b2d19;
  border-radius: var(--radius-sm);
  padding: 0.78rem;
}

.error-box h3 {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.error-box ul {
  margin: 0;
  padding-left: 1rem;
}

.chat-shell {
  display: grid;
  gap: 0.75rem;
}

#chat_messages {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.chat-message {
  padding: 0.8rem;
}

.chat-message--assistant {
  background: linear-gradient(140deg, #ffffff, #f1f8f5);
  border-color: rgba(63, 143, 121, 0.2);
}

.chat-message--user {
  background: linear-gradient(140deg, #fff7f1, #fff);
  border-color: rgba(255, 143, 103, 0.32);
}

.chat-message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.chat-message__content p {
  margin-bottom: 0.4rem;
}

.chat-message__content p:last-child {
  margin-bottom: 0;
}

.chat-message__retry {
  margin-top: 0.55rem;
}

.chat-message--loading {
  animation: pulse 1.4s ease-in-out infinite;
}

.loading-dots::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.15s steps(4, end) infinite;
}

.chat-form-status {
  min-height: 1.2rem;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.tip-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.tip-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.tip-meta {
  color: var(--ink-500);
  font-size: 0.88rem;
  margin-top: 0.42rem;
}

.tip-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.section-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--ink-500);
  margin-bottom: 0.9rem;
}

.empty-state {
  text-align: center;
  color: var(--ink-500);
  padding-block: 1.1rem;
}

.pagination {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.pagination a,
.pagination span,
.pagination em {
  min-width: 2rem;
  padding: 0.35rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 143, 121, 0.2);
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-700);
  background: #fff;
}

.pagination .current {
  background: var(--mint-700);
  color: #fff;
  border-color: var(--mint-700);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75% {
    content: "...";
  }

  100% {
    content: "";
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.62;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1100px, calc(100% - 1.1rem));
  }

  .topbar__inner {
    min-height: 62px;
    align-items: flex-start;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }

  .topbar__nav {
    gap: 0.35rem;
  }

  .destination-hero {
    padding: 0.95rem;
  }

  .filters-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.form-stack {
  display: grid;
  gap: 0.9rem;
}

.hero-actions {
  margin-top: 0.8rem;
}
.section-card {
  margin-bottom: 1rem;
}

.form-card {
  margin-bottom: 1rem;
}

#chat_form {
  margin-top: 0.6rem;
}
.page-head--featured {
  position: relative;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(245, 252, 249, 0.94)),
    radial-gradient(circle at 100% 0%, rgba(255, 143, 103, 0.26), rgba(255, 143, 103, 0));
  border: 1px solid rgba(63, 143, 121, 0.18);
  box-shadow: var(--shadow-sm);
}

.page-head--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: linear-gradient(135deg, rgba(63, 143, 121, 0.1) 0%, rgba(63, 143, 121, 0) 45%);
  pointer-events: none;
}

.page-kicker,
.section-kicker,
.destination-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mint-700);
  border: 1px solid rgba(63, 143, 121, 0.24);
  background: rgba(238, 247, 243, 0.9);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
}

.page-kicker {
  margin-bottom: 0.55rem;
}

.section-kicker {
  margin-bottom: 0.45rem;
}

.destination-card {
  position: relative;
  overflow: hidden;
}

.destination-card::before {
  content: "";
  position: absolute;
  right: -2.1rem;
  top: -2.1rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 143, 103, 0.24) 0%, rgba(255, 143, 103, 0) 68%);
  pointer-events: none;
}

.destination-card__title {
  margin-top: 0.08rem;
}

.destination-grid .destination-card {
  animation: card-rise 420ms ease both;
}

.destination-grid .destination-card:nth-child(2n) {
  animation-delay: 80ms;
}

.destination-grid .destination-card:nth-child(3n) {
  animation-delay: 140ms;
}

.destination-hero {
  position: relative;
  overflow: hidden;
}

.destination-hero::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4.4rem;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 143, 121, 0.16) 0%, rgba(63, 143, 121, 0) 65%);
  pointer-events: none;
}

.section-card,
.form-card {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 249, 0.96));
}

.section-title {
  position: relative;
  padding-bottom: 0.55rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.4rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral-400), var(--mint-500));
}

.tip-card {
  transition: transform 160ms ease, box-shadow 200ms ease;
}

.tip-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.chat-message {
  border-left: 3px solid transparent;
}

.chat-message--assistant {
  border-left-color: rgba(63, 143, 121, 0.55);
}

.chat-message--user {
  border-left-color: rgba(255, 143, 103, 0.65);
}

@keyframes card-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page-head--featured {
    padding: 0.9rem;
  }

  .destination-card::before,
  .destination-hero::after {
    display: none;
  }
}
.destination-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  align-items: stretch;
}

.destination-hero__content {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.destination-hero__media {
  min-height: 250px;
}

.destination-hero__image,
.destination-hero__image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(63, 143, 121, 0.2);
}

.destination-hero__image {
  object-fit: cover;
  background: var(--mint-50);
}

.destination-hero__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--ink-500);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 143, 103, 0.16), rgba(255, 143, 103, 0) 55%),
    radial-gradient(circle at 85% 80%, rgba(63, 143, 121, 0.2), rgba(63, 143, 121, 0) 55%),
    #fff;
}

@media (max-width: 720px) {
  .destination-hero {
    grid-template-columns: 1fr;
  }

  .destination-hero__media {
    order: -1;
    min-height: 210px;
  }

  .destination-hero__image,
  .destination-hero__image-placeholder {
    min-height: 210px;
  }
}

.destination-hero__content,
.destination-hero__media {
  position: relative;
  z-index: 1;
}

.booking-offer-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.booking-offer-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(63, 143, 121, 0.18);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 243, 0.95));
}

.booking-offer-provider {
  color: var(--mint-700);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.booking-offer-title {
  font-size: 1rem;
}

.booking-offer-description {
  color: var(--ink-500);
  min-height: 2.5em;
}

.page-head-actions {
  margin-top: 0.85rem;
}

.destination-card__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: calc(var(--radius-md) - 4px);
  border: 1px solid rgba(63, 143, 121, 0.18);
  margin-bottom: 0.2rem;
}

.destination-card__image,
.destination-card__image-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.destination-card__image {
  object-fit: cover;
  background: var(--mint-50);
}

.destination-card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-500);
  font-size: 0.9rem;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 143, 103, 0.2), rgba(255, 143, 103, 0) 55%),
    radial-gradient(circle at 80% 78%, rgba(63, 143, 121, 0.22), rgba(63, 143, 121, 0) 55%),
    #fff;
}
