:root {
  --sand: #C79A5A;
  --terracotta: #B45F32;
  --brown: #3A2E25;
  --turquoise: #1E9FBF;
  --bg: #f8f2e8;
  --text: #2a231d;
  --muted: #5d5146;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f9f3ea 0%, #f3ece2 35%, #f8f2e8 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

a {
  color: var(--brown);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--turquoise);
}

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

.site-header {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(23, 18, 14, 0.08);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  width: 300px;
  height: auto;
  display: block;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.4rem;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a {
  padding: 0.95rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  color: var(--brown);
  font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(196, 138, 56, 0.15);
  color: var(--brown);
}

.hero {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.98), rgba(248, 242, 232, 0.9) 45%), linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.92));
  padding: 3rem 0 1.5rem;
}

.hero-content {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr);
  align-items: center;
  min-height: 500px;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
  padding: 2rem 2.5rem;
  background: #fff;
  border-radius: 1.8rem;
  box-shadow: 0 25px 60px rgba(23, 18, 14, 0.08);
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 420px;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(23, 18, 14, 0.1);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  position: relative;
}

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

.hero-copy h1 {
  font-size: clamp(3rem, 4vw, 4.5rem);
  line-height: 1.02;
  margin: 0;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-content > div {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.hero-features {
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.feature-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  background: #fff;
  border-radius: 1.75rem;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(23, 18, 14, 0.08);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(196, 138, 56, 0.14);
  color: var(--terracotta);
  font-size: 1.4rem;
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0;
}

.hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: var(--brown);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--brown);
  color: var(--brown);
  background: #fff;
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(58, 46, 37, 0.08);
}

.section-intro,
.page-header,
.content-block {
  padding: 3rem 0;
}

.section-intro h2,
.page-header h1,
.content-block h2 {
  margin-top: 0;
}

.feature-grid,
.cards-grid,
.data-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0 4rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .data-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.card,
.data-card {
  border: 1px solid rgba(58, 46, 37, 0.08);
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(58, 46, 37, 0.08);
}

.feature-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card h3,
.card h3,
.data-card h3 {
  margin-top: 0;
}

.card h3,
.data-card h3 {
  margin-top: 0;
}

.data-card p {
  margin: 0.75rem 0;
  color: var(--muted);
}

.data-card ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.data-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--turquoise);
  font-weight: 700;
}

/* ── Card sub-components ── */
.card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge--terracotta {
  background: rgba(180, 95, 50, 0.12);
  color: var(--terracotta);
}

.badge--sand {
  background: rgba(199, 154, 90, 0.15);
  color: #7a5018;
}

.badge--green {
  background: rgba(40, 160, 80, 0.12);
  color: #1e7a40;
}

.badge--turquoise {
  background: rgba(30, 159, 191, 0.12);
  color: #157fa0;
}

.badge--muted {
  background: rgba(58, 46, 37, 0.07);
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}

.tag {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid rgba(58, 46, 37, 0.1);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.5rem 0 0 !important;
}

.card-link {
  display: inline-flex;
  margin-top: 1.1rem;
  color: var(--turquoise) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.card-link:hover {
  color: var(--terracotta) !important;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.price-tag {
  font-weight: 700;
  color: var(--terracotta);
  font-size: 1rem;
}

.book-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 0;
}

.book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(180, 95, 50, 0.3);
  color: #fff !important;
}

.hero-panel {
  border: 1px solid rgba(30, 159, 191, 0.16);
  background: rgba(30, 159, 191, 0.05);
  border-radius: 1rem;
}

.panel-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  padding: 1.5rem 1.5rem 0.75rem;
}

.panel-list {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
}

.panel-list li {
  margin-bottom: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}

.panel-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--terracotta);
}

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(58, 46, 37, 0.08);
}

.footer-inner {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  opacity: 0.75;
  width: 100%;
}

/* ── Tips page ── */
.tips-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.tip-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid rgba(58, 46, 37, 0.08);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(58, 46, 37, 0.06);
}

.tip-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: rgba(199, 154, 90, 0.12);
  border-radius: 1rem;
}

.tip-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.tip-card p {
  margin: 0.4rem 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.tips-list {
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}

.tips-list li {
  margin-bottom: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.packlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.packlist-group h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Flights & Hotels page ── */
.booking-section {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(58, 46, 37, 0.06);
}

.booking-section:last-of-type {
  border-bottom: none;
  padding-bottom: 4rem;
}

.booking-section h2 {
  margin-top: 0;
}

.booking-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.partner-card {
  background: #fff;
  border: 1px solid rgba(58, 46, 37, 0.08);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(58, 46, 37, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.partner-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brown);
}

.partner-card p {
  font-size: 0.93rem;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.partner-card .book-btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

.info-box {
  background: rgba(199, 154, 90, 0.1);
  border: 1px solid rgba(199, 154, 90, 0.3);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.93rem;
  color: var(--text);
  line-height: 1.5;
  margin-top: 1.25rem;
}

.compare-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brown) 0%, #5a3e2e 100%);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  margin-top: 0.25rem;
}

.compare-banner-copy {
  flex: 1;
  min-width: 200px;
}

.compare-banner-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 0.35rem;
}

.compare-banner-text {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

.compare-banner-btn {
  background: #fff !important;
  color: var(--brown) !important;
  flex-shrink: 0;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
}

.compare-banner-btn:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--brown) !important;
}

/* ── Filter bar ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0 1.5rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(58, 46, 37, 0.15);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--sand);
  color: var(--brown);
}

.filter-btn.active {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

/* ── Budget grid (accommodation page) ── */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.budget-item {
  background: #fff;
  border: 1px solid rgba(58, 46, 37, 0.08);
  border-radius: 1.2rem;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(58, 46, 37, 0.06);
}

.budget-item h3 {
  margin: 0.5rem 0 0.4rem;
  font-size: 1rem;
}

.budget-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── Route stops flow (routes page) ── */
.route-stops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.route-stop {
  color: var(--brown);
  font-weight: 600;
}

.route-arrow {
  color: var(--sand);
  font-weight: 400;
}

/* ── Footer link ── */
.footer-link {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link:hover,
.footer-link.active {
  color: var(--turquoise);
}

.ed-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
  transition: opacity 0.15s ease;
  line-height: 0;
}

.ed-badge:hover {
  opacity: 0.75;
}

.ed-logo {
  height: 22px;
  width: auto;
  display: block;
  border-radius: 0;
}

/* ── Impressum page ── */
.impressum-content {
  padding-bottom: 4rem;
}

.impressum-block {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(58, 46, 37, 0.08);
}

.impressum-block:last-of-type {
  border-bottom: none;
}

.impressum-block h2 {
  font-size: 1.15rem;
  color: var(--brown);
  margin: 0 0 1rem;
}

.impressum-block h3 {
  font-size: 0.95rem;
  color: var(--brown);
  margin: 1.25rem 0 0.5rem;
}

.impressum-block p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 0.75rem;
}

.impressum-block a {
  color: var(--turquoise);
}

.impressum-back {
  display: inline-flex;
  margin-top: 2rem;
}

.impressum-credit {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(58, 46, 37, 0.08);
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.7;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-content > div {
    padding: 1.75rem;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #fff;
    padding: 1rem 0;
    border-top: 1px solid rgba(58, 46, 37, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 3rem 0 2rem;
  }
}

@media (max-width: 520px) {
  .button,
  .button-secondary {
    width: 100%;
  }

  .hero-content > div {
    border-radius: 1.2rem;
  }
}

/* ── Route Modal ── */
.route-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.route-modal--open {
  opacity: 1;
  visibility: visible;
}

.route-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 35, 29, 0.6);
  backdrop-filter: blur(4px);
}

.route-modal-content {
  position: relative;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 32px 80px rgba(23, 18, 14, 0.25);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.route-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(58, 46, 37, 0.08);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--brown);
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.route-modal-close:hover {
  background: rgba(58, 46, 37, 0.15);
}

.route-modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.route-modal-info {
  padding: 2rem 2rem 2rem 2.5rem;
  overflow-y: auto;
}

.route-modal-header {
  margin-bottom: 1rem;
}

.route-modal-header h2 {
  margin: 0 0 0.75rem;
  font-size: 1.6rem;
  color: var(--brown);
}

.route-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.route-modal-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.route-modal-stops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}

.route-modal-info h3 {
  font-size: 1rem;
  color: var(--brown);
  margin: 1.25rem 0 0.5rem;
}

.route-modal-map {
  min-height: 400px;
  border-radius: 0 1.5rem 1.5rem 0;
  background: var(--bg);
}

@media (max-width: 768px) {
  .route-modal-body {
    grid-template-columns: 1fr;
  }

  .route-modal-info {
    padding: 2rem 1.5rem 1.5rem;
  }

  .route-modal-map {
    min-height: 300px;
    border-radius: 0 0 1.5rem 1.5rem;
  }

  .route-modal-content {
    max-height: 95vh;
  }
}

/* ── Chat Widget ── */
#namibia-chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  font-family: inherit;
}

.chat-bubble {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(180, 95, 50, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(180, 95, 50, 0.4);
}

.chat-window {
  position: absolute;
  bottom: 5rem;
  right: 0;
  width: 350px;
  height: 500px;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 16px 48px rgba(58, 46, 37, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-window[hidden] {
  display: none;
}

.chat-header {
  background: var(--terracotta);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease;
}

.chat-close:hover {
  opacity: 0.8;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: #f9f3ea;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-message {
  display: flex;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  justify-content: flex-end;
}

.user-message .message-content {
  background: var(--brown);
  color: #fff;
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 0.9rem;
}

.assistant-message {
  justify-content: flex-start;
}

.assistant-message .message-content {
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(58, 46, 37, 0.1);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid rgba(58, 46, 37, 0.08);
  flex-shrink: 0;
}

.chat-expert-btn {
  background: rgba(199, 154, 90, 0.12);
  border: 1px solid rgba(199, 154, 90, 0.3);
  color: var(--brown);
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: inherit;
}

.chat-expert-btn:hover {
  background: rgba(199, 154, 90, 0.2);
  border-color: var(--sand);
}

.chat-input-group {
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  border: 1px solid rgba(58, 46, 37, 0.15);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.chat-input:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 2px rgba(199, 154, 90, 0.1);
}

.chat-send {
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
  font-weight: 600;
}

.chat-send:hover:not(:disabled) {
  background: #a84e2a;
  transform: translateY(-1px);
}

.chat-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  #namibia-chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    max-width: 350px;
  }
}
