:root {
  --dark: #10231f;
  --green: #1f8a5b;
  --green-dark: #146640;
  --gold: #f5b84b;
  --cream: #fff8ec;
  --sand: #fffdf8;
  --white: #ffffff;
  --muted: #63736d;
  --border: rgba(16, 35, 31, 0.11);
  --shadow: 0 18px 50px rgba(16, 35, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--dark);
  /* Real leopard fur texture with a soft white overlay for a premium safari feel. */
  background:
    linear-gradient(rgba(255, 253, 248, 0.88), rgba(255, 253, 248, 0.91)),
    url("https://images.unsplash.com/photo-1764022276426-f58d8c21bdda?auto=format&fit=crop&fm=jpg&q=70&w=2200") center/cover fixed;
}

body.admin-body {
  background: #f6f2e9;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1160px, 92%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  text-decoration: none;
  color: var(--dark);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--green);
}

.nav-admin {
  background: var(--dark);
  color: white !important;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--green);
  color: white;
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
  padding: 5rem max(4%, calc((100% - 1160px) / 2));
  background: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.52)),
    url("https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: white;
}

.hero-content {
  max-width: 780px;
}

.eyebrow {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.78rem;
  margin: 0 0 0.65rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  line-height: 0.94;
  margin: 0;
  letter-spacing: -0.07em;
}

.hero-text {
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.trip-footer,
.form-actions,
.about-features,
.admin-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn,
.trip-footer button,
.admin-button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.trip-footer button:hover,
.admin-button:hover {
  transform: translateY(-2px);
}

.primary,
.trip-footer button,
.admin-button.primary {
  background: var(--gold);
  color: var(--dark);
}

.secondary,
.admin-button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.admin-button.secondary {
  background: white;
  color: var(--dark);
  border-color: var(--border);
}

.danger {
  background: #ffe7e4 !important;
  color: #a8261a !important;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  justify-self: end;
  width: min(430px, 100%);
}

.mini-card,
.hero-stats {
  border-radius: 1.75rem;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.glass {
  background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
}

.mini-card span {
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.mini-card strong {
  display: block;
  margin: 0.5rem 0;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.mini-card small {
  color: var(--muted);
  font-weight: 800;
}

.hero-stats {
  background: rgba(16, 35, 31, 0.72);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
}

.section {
  width: min(1160px, 92%);
  margin: 0 auto;
  padding: 5rem 0;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: none;
}

.split-heading p:not(.eyebrow) {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.section-heading h2,
.about-card h2,
.contact-copy h2,
.admin-hero h1 {
  font-size: clamp(2.05rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin: 0;
}

.destination-grid,
.trips-grid,
.blog-grid,
.admin-grid,
.admin-list {
  display: grid;
  gap: 1.25rem;
}

.destination-grid,
.trips-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.destination-card {
  min-height: 330px;
  padding: 1.4rem;
  color: white;
  border-radius: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 0 18px 40px rgba(16, 35, 31, 0.12);
}

.destination-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.destination-card > * {
  position: relative;
}

.destination-card h3 {
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
}

.destination-card p,
.trip-card p,
.blog-card p,
.about-copy p,
.contact-copy p,
.admin-muted {
  color: var(--muted);
  line-height: 1.68;
}

.destination-card p {
  color: rgba(255, 255, 255, 0.84);
  margin: 0;
}

.destination-meta {
  display: inline-flex;
  width: max-content;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.trips-section,
.blog-section {
  width: 100%;
  padding-inline: max(4%, calc((100% - 1160px) / 2));
}

.trips-section {
  background: rgba(255, 248, 236, 0.9);
  backdrop-filter: blur(1px);
}

.blog-section {
  background: rgba(242, 248, 244, 0.9);
  backdrop-filter: blur(1px);
}

.trip-card,
.blog-card,
.booking-form,
.contact-card,
.about-card,
.admin-card,
.admin-item,
.login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 1.45rem;
  box-shadow: 0 14px 35px rgba(16, 35, 31, 0.08);
  overflow: hidden;
}

.trip-image,
.blog-image {
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.trip-body,
.blog-body,
.admin-card,
.admin-item,
.login-card {
  padding: 1.35rem;
}

.tag,
.status-pill {
  display: inline-flex;
  padding: 0.45rem 0.75rem;
  background: #e8f5ef;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.trip-body h3,
.blog-body h3,
.admin-item h3 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  margin: 0.85rem 0 0.5rem;
}

.trip-footer {
  justify-content: space-between;
  margin-top: 1rem;
}

.trip-footer strong {
  font-size: 1.28rem;
}

.blog-card time {
  color: var(--green-dark);
  font-weight: 900;
  font-size: 0.86rem;
}

.about-card,
.contact-card {
  padding: clamp(1.4rem, 4vw, 2.3rem);
}

.about-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.about-features span {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: var(--cream);
  font-weight: 900;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.contact-list,
.social-links,
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-list {
  flex-direction: column;
  margin: 1.4rem 0;
}

.contact-list a,
.contact-list span,
.social-links a,
.footer-social-links a {
  text-decoration: none;
  font-weight: 800;
}

.social-links a,
.footer-social-links a {
  background: var(--dark);
  color: white;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
}

.footer-social-links a {
  background: rgba(255, 255, 255, 0.1);
}

.booking-form {
  padding: 1.35rem;
}

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

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  color: var(--dark);
  background: #fffdfa;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 138, 91, 0.18);
  border-color: var(--green);
}

.full {
  width: 100%;
}

.form-message {
  margin: 1rem 0 0;
  font-weight: 800;
}

.form-message.success {
  color: var(--green-dark);
}

.form-message.error {
  color: #b42318;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
  padding: 3rem max(4%, calc((100% - 1160px) / 2));
  background: var(--dark);
  color: white;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer a {
  display: block;
  margin: 0 0 0.65rem;
  text-decoration: none;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 1.2rem;
  padding: 2rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.52);
}

.loading-grid::before {
  content: "Loading content...";
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.loading-grid.loaded::before {
  content: none;
}

.admin-header {
  background: var(--dark);
  color: white;
}

.admin-header .logo,
.admin-header .nav-links a {
  color: white;
}

.admin-main {
  width: min(1180px, 92%);
  margin: auto;
  padding: 2.5rem 0 4rem;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-hero p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-grid {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
}

.admin-card h2,
.login-card h1 {
  margin-top: 0;
  letter-spacing: -0.04em;
}

.admin-tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tab-button {
  border: 1px solid var(--border);
  background: white;
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.tab-button.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.admin-list {
  grid-template-columns: 1fr;
}

.admin-item {
  box-shadow: none;
}

.admin-item p {
  margin-bottom: 0;
}

.admin-item-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.admin-item-meta span {
  background: var(--cream);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: linear-gradient(120deg, rgba(16, 35, 31, 0.9), rgba(31, 138, 91, 0.66)),
    url("https://images.unsplash.com/photo-1549366021-9f761d450615?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.login-card {
  width: min(460px, 100%);
}

.login-card .logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    inset: 100% 4% auto 4%;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .admin-header .nav-links {
    background: var(--dark);
  }

  .nav-links.active {
    display: flex;
  }

  .hero,
  .about-card,
  .contact-card,
  .footer,
  .admin-grid,
  .admin-hero {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    display: grid;
  }

  .hero-panel {
    justify-self: start;
  }

  .destination-grid,
  .trips-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-heading {
    display: block;
  }

  .split-heading p:not(.eyebrow) {
    margin-top: 1rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .destination-grid,
  .trips-grid,
  .blog-grid,
  .two-cols,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section,
  .trips-section,
  .blog-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Destination page, inquiry modal, and customer care chat additions */
.heading-actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.btn.compact {
  padding: 0.78rem 1.05rem;
  font-size: 0.92rem;
}

.page-hero {
  width: min(1160px, 92%);
  margin: 2rem auto 0;
  min-height: 46vh;
  border-radius: 2rem;
  padding: clamp(2rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  background: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.56)),
    url("https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=1600&q=80") center/cover;
  color: white;
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  margin: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.all-destinations-grid {
  grid-template-columns: repeat(3, 1fr);
}

.clickable-card {
  cursor: pointer;
}

.card-action {
  width: max-content;
  margin-top: 1rem;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  background: var(--gold);
  color: var(--dark);
  font-weight: 900;
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(16, 35, 31, 0.68);
}

.modal-panel {
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  position: relative;
  border-radius: 1.6rem;
  background: white;
  padding: clamp(1.2rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 2.5rem 0.5rem 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.modal-form {
  margin-top: 1.2rem;
}

.support-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
  background: var(--green);
  color: white;
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.support-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 5rem;
  z-index: 90;
  width: min(380px, calc(100vw - 2rem));
  max-height: calc(100vh - 6.5rem);
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  overflow: hidden;
  border-radius: 1.4rem;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.support-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--dark);
  color: white;
}

.support-header strong,
.support-header span {
  display: block;
}

.support-header span {
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
}

.support-header button {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
}

.support-messages,
.admin-chat-messages {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  overflow: auto;
  background: #fffaf0;
}

.support-messages {
  max-height: 340px;
}

.support-form,
.admin-reply-form {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  background: white;
}

#supportIdentityFields {
  display: grid;
  gap: 0.7rem;
}

.chat-bubble {
  width: fit-content;
  max-width: 86%;
  border-radius: 1rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--border);
}

.chat-bubble.from-visitor {
  justify-self: end;
  background: #e8f5ef;
}

.chat-bubble.from-admin {
  justify-self: start;
  background: white;
}

.chat-bubble span {
  display: block;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
  margin-bottom: 0.2rem;
}

.chat-bubble p {
  margin: 0;
  color: var(--dark);
  line-height: 1.45;
}

.chat-bubble small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.support-chat-card {
  display: grid;
  gap: 1rem;
}

.support-chat-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.support-chat-heading h3,
.support-chat-heading p {
  margin: 0;
}

.admin-chat-messages {
  max-height: 320px;
  border-radius: 1rem;
}

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

  .all-destinations-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .all-destinations-grid,
  .modal .two-cols {
    grid-template-columns: 1fr;
  }

  .support-panel {
    right: 0.75rem;
    bottom: 4.75rem;
    width: calc(100vw - 1.5rem);
  }

  .support-fab {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}


/* SEO landing pages and new public pages */
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.dark {
  background: var(--dark);
  color: white;
}

.outline {
  background: white;
  color: var(--dark);
  border: 1px solid var(--border);
}

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

.centered-actions {
  justify-content: center;
}

.explore-uganda-section {
  width: min(1160px, 92%);
}

.explore-card,
.contact-cta-card,
.seo-strip {
  display: grid;
  gap: 2rem;
}

.explore-card {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  box-shadow: 0 14px 35px rgba(16, 35, 31, 0.08);
}

.explore-copy h2,
.contact-cta-card h2,
.seo-strip h3 {
  margin: 0;
  letter-spacing: -0.045em;
}

.explore-copy h2,
.contact-cta-card h2 {
  font-size: clamp(2.05rem, 4vw, 3.6rem);
  line-height: 1;
}

.explore-copy p,
.contact-cta-card p,
.seo-strip p,
.blog-body small {
  color: var(--muted);
  line-height: 1.7;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  min-height: 340px;
  background: var(--dark);
  box-shadow: var(--shadow);
}

.video-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-cta-section {
  padding-top: 2rem;
}

.contact-cta-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 1.8rem;
  background: linear-gradient(115deg, rgba(16, 35, 31, 0.95), rgba(31, 138, 91, 0.82));
  color: white;
  box-shadow: var(--shadow);
}

.contact-cta-card p {
  color: rgba(255, 255, 255, 0.78);
}

.seo-strip-section {
  padding-top: 0;
}

.seo-strip {
  grid-template-columns: repeat(3, 1fr);
}

.seo-strip article {
  padding: 1.35rem;
  border-radius: 1.35rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 35px rgba(16, 35, 31, 0.06);
}

.all-trips-grid,
.blog-list-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-card-full .blog-body p {
  min-height: 7rem;
}

.text-link {
  display: inline-flex;
  margin-top: 0.8rem;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.trips-hero {
  background-image: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.56)), url("https://images.unsplash.com/photo-1549366021-9f761d450615?auto=format&fit=crop&w=1600&q=80");
}

.blog-hero {
  background-image: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.56)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80");
}

.uganda-hero {
  background-image: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.56)), url("https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=1600&q=80");
}

.contact-hero {
  background-image: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.56)), url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1600&q=80");
}

.destinations-hero {
  background-image: linear-gradient(115deg, rgba(16, 35, 31, 0.88), rgba(31, 138, 91, 0.56)), url("https://images.unsplash.com/photo-1516426122078-c23e76319801?auto=format&fit=crop&w=1600&q=80");
}

@media (max-width: 920px) {
  .explore-card,
  .contact-cta-card,
  .seo-strip,
  .all-trips-grid,
  .blog-list-grid {
    grid-template-columns: 1fr;
  }

  .contact-cta-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .video-card {
    min-height: 230px;
  }
}


/* Explore Bloom & Beyond brand refinements */
:root {
  --green: #145c38;
  --green-dark: #0b452a;
  --gold: #dca52b;
  --cream: #fbf4e7;
}

.navbar {
  width: min(1240px, 94%);
  padding: 0.55rem 0;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  letter-spacing: normal;
}

.brand-logo img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(16, 35, 31, 0.1);
}

.brand-logo .brand-name {
  display: grid;
  color: var(--green-dark);
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-logo .brand-name b {
  color: var(--gold);
  font-size: 0.9rem;
}

.nav-links {
  gap: 0.8rem;
}

.nav-links a {
  font-size: 0.86rem;
}

.nav-phone {
  color: var(--green-dark) !important;
  border: 1px solid rgba(20, 92, 56, 0.22);
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  white-space: nowrap;
}

.hero {
  min-height: 68vh;
  gap: 1.5rem;
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.7rem);
  line-height: 1.01;
  letter-spacing: -0.052em;
}

.hero-text {
  max-width: 590px;
  margin: 1rem 0 1.2rem;
  font-size: 1rem;
  line-height: 1.62;
}

.mini-card strong {
  font-size: 1.65rem;
}

.section,
.trips-section,
.blog-section {
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

.section-heading {
  margin-bottom: 1.45rem;
}

.section-heading h2,
.about-card h2,
.contact-copy h2,
.admin-hero h1 {
  font-size: clamp(1.8rem, 3.25vw, 3rem);
  line-height: 1.05;
}

.page-hero {
  margin-top: 1rem;
  min-height: 34vh;
  padding: clamp(1.7rem, 4vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.page-hero p:not(.eyebrow) {
  margin-bottom: 0;
  line-height: 1.6;
}

.contact-cta-section {
  padding-top: 0.75rem;
}

.trip-image {
  min-height: 245px;
  background-position: center top;
}

.footer {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand-row img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand-row h3 {
  margin: 0;
}

.footer-phone {
  display: inline-flex !important;
  margin-top: 0.4rem !important;
  color: white !important;
  font-size: 1.05rem;
}

@media (max-width: 1080px) {
  .nav-phone {
    display: none;
  }
  .brand-logo .brand-name {
    font-size: 0.95rem;
  }
}

@media (max-width: 920px) {
  .navbar {
    padding: 0.45rem 0;
  }
  .nav-phone {
    display: inline-flex;
  }
  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 640px) {
  .brand-logo img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .brand-logo .brand-name {
    font-size: 0.86rem;
  }
  .brand-logo .brand-name b {
    font-size: 0.76rem;
  }
  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }
  .hero-actions {
    gap: 0.65rem;
  }
  .btn,
  .trip-footer button,
  .admin-button {
    padding: 0.78rem 1rem;
  }
  .section,
  .trips-section,
  .blog-section {
    padding-top: 2.65rem;
    padding-bottom: 2.65rem;
  }
  .page-hero {
    margin-top: 0.75rem;
    min-height: auto;
  }
}


.booking-terms-section {
  padding-top: 1.1rem;
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.terms-grid article {
  display: grid;
  gap: 0.4rem;
  min-height: 142px;
  align-content: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(16, 35, 31, 0.06);
}

.terms-grid strong {
  color: var(--green-dark);
  font-size: 1.15rem;
}

.terms-grid span {
  color: var(--muted);
  line-height: 1.55;
}

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

@media (max-width: 640px) {
  .terms-grid {
    grid-template-columns: 1fr;
  }
  .terms-grid article {
    min-height: auto;
  }
}

/* Compact home hero slider */
.hero-slider {
  position: relative;
  height: clamp(500px, 68vh, 680px);
  min-height: 500px;
  overflow: hidden;
  background: var(--dark);
  color: white;
}

.hero-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  align-items: center;
  padding: 3.5rem max(4%, calc((100% - 1160px) / 2));
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 28, 20, 0.9) 0%, rgba(8, 28, 20, 0.7) 43%, rgba(8, 28, 20, 0.18) 78%, rgba(8, 28, 20, 0.08) 100%);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  width: min(650px, 78%);
}

.hero-slide h1,
.hero-slide h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: white;
}

.hero-slide-content > p:not(.eyebrow) {
  max-width: 590px;
  margin: 1rem 0 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.62;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(8, 28, 20, 0.48);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.3rem;
  z-index: 3;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.slider-dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 760px) {
  .hero-slider {
    height: 540px;
    min-height: 540px;
  }

  .hero-slide {
    align-items: end;
    padding: 3rem 1.25rem 4.25rem;
    background-position: 62% center;
  }

  .hero-slide::before {
    background: linear-gradient(0deg, rgba(8, 28, 20, 0.94) 0%, rgba(8, 28, 20, 0.62) 56%, rgba(8, 28, 20, 0.18) 100%);
  }

  .hero-slide-content {
    width: 100%;
  }

  .hero-slide h1,
  .hero-slide h2 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .slider-arrow {
    top: auto;
    bottom: 0.95rem;
    width: 38px;
    height: 38px;
    transform: none;
  }

  .slider-prev { left: 1rem; }
  .slider-next { right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Account, customer dashboard, payment, and Railway admin platform */
.account-page,
.portal-page {
  min-height: 100vh;
}

.account-shell {
  width: min(980px, 92%);
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 0;
  display: grid;
  place-items: center;
}

.account-card {
  width: min(620px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.wide-account-card {
  width: min(820px, 100%);
}

.account-intro {
  margin-bottom: 1.5rem;
}

.account-intro h1,
.payment-result-card h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.account-intro p:last-child,
.payment-result-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.account-form {
  display: grid;
  gap: 1rem;
}

.account-form small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.account-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-links a,
.development-reset-link {
  color: var(--green-dark);
  font-weight: 800;
}

.development-reset-link {
  display: inline-block;
  margin-top: 0.8rem;
}

.nav-logout {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  background: var(--dark);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.portal-shell {
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 2.2rem 0 5rem;
}

.portal-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.portal-heading h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.portal-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  align-items: start;
}

.portal-main,
.portal-sidebar {
  display: grid;
  gap: 1.25rem;
}

.dashboard-stats,
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card,
.admin-metric {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(16, 35, 31, 0.08);
}

.stat-card strong,
.admin-metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.stat-card span,
.admin-metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.portal-card,
.admin-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: 0 12px 34px rgba(16, 35, 31, 0.08);
}

.portal-card h2,
.admin-card h2 {
  margin: 0.25rem 0 1rem;
}

.compact-form {
  display: grid;
  gap: 0.9rem;
}

.support-card p {
  color: var(--muted);
  line-height: 1.65;
}

.compact-heading {
  margin: 0.3rem 0 0;
}

.dashboard-bookings {
  display: grid;
  gap: 1rem;
}

.booking-card,
.admin-record {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 12px 34px rgba(16, 35, 31, 0.07);
}

.booking-card-head,
.record-heading,
.admin-section-title,
.admin-heading,
.admin-topbar,
.admin-top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.booking-card h3,
.admin-record h3 {
  margin: 0.3rem 0 0;
}

.booking-card > p,
.admin-record > p {
  color: var(--muted);
  line-height: 1.65;
}

.booking-reference {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge,
.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #eef4f0;
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: capitalize;
}

.status-paid,
.status-confirmed,
.status-completed {
  background: #dcfce7;
  color: #166534;
}

.status-pending,
.status-quoted {
  background: #fef3c7;
  color: #92400e;
}

.status-failed,
.status-cancelled,
.status-disabled {
  background: #fee2e2;
  color: #991b1b;
}

.booking-meta,
.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.booking-meta span,
.record-meta span {
  border-radius: 999px;
  padding: 0.38rem 0.62rem;
  background: var(--cream);
  font-size: 0.8rem;
  font-weight: 750;
}

.booking-price {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}

.booking-price strong {
  font-size: 1.25rem;
}

.booking-price small {
  color: var(--muted);
}

.booking-actions,
.admin-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.payment-result-card {
  text-align: center;
}

.payment-summary {
  display: grid;
  gap: 0.35rem;
  margin: 1.4rem 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--cream);
}

.payment-summary strong {
  font-size: 1.7rem;
}

.mock-warning {
  margin: 1rem 0;
  padding: 0.9rem;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 750;
}

.admin-body {
  min-height: 100vh;
  background: #f4f1e8;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(15px);
}

.admin-top-actions {
  justify-content: flex-end;
}

.admin-top-actions span {
  color: var(--muted);
  font-weight: 750;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 78px);
}

.admin-sidebar {
  position: sticky;
  top: 78px;
  align-self: start;
  height: calc(100vh - 78px);
  padding: 1.2rem 0.9rem;
  background: var(--dark);
  display: grid;
  align-content: start;
  gap: 0.4rem;
}

.admin-nav {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.82rem 0.9rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.admin-nav:hover,
.admin-nav.active {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.link-nav {
  display: block;
}

.admin-main {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
}

.admin-heading {
  margin-bottom: 1rem;
}

.admin-heading h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: grid;
  gap: 1.1rem;
}

.admin-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.admin-button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-button.primary {
  background: var(--green-dark);
  color: white;
}

.admin-button.secondary {
  background: #edf1ee;
  color: var(--dark);
}

.admin-button.danger {
  background: #fee2e2;
  color: #991b1b;
}

.admin-button:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.admin-search,
.admin-section-title select {
  width: min(280px, 100%);
}

.admin-record {
  margin-top: 0.9rem;
}

.inline-admin-form {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.inline-admin-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.inline-admin-form input,
.inline-admin-form select,
.inline-admin-form textarea,
.admin-search,
.admin-form input,
.admin-form select,
.admin-form textarea,
.responsive-table select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 0.65rem 0.75rem;
  color: var(--dark);
}

.inline-admin-form input[name="totalAmount"] {
  width: 130px;
}

.inline-admin-form input[name="currency"] {
  width: 90px;
  text-transform: uppercase;
}

.grow-field {
  flex: 1 1 340px;
}

.grow-field textarea {
  width: 100%;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 0.8rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}

.checkbox-row input {
  width: auto;
}

.content-admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.content-admin-item:last-child {
  border-bottom: 0;
}

.content-admin-item h3 {
  margin: 0 0 0.35rem;
}

.content-admin-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.responsive-table th,
.responsive-table td {
  padding: 0.85rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.responsive-table th {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.responsive-table td small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.admin-chat-log {
  display: grid;
  gap: 0.7rem;
  max-height: 360px;
  overflow-y: auto;
  margin: 1rem 0;
  padding: 0.8rem;
  border-radius: 15px;
  background: #f7f8f6;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .portal-grid,
  .admin-content-grid {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-stats,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    display: flex;
    overflow-x: auto;
  }

  .admin-nav {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .account-shell {
    padding: 1.2rem 0 3rem;
  }

  .account-card,
  .booking-card,
  .portal-card,
  .admin-card,
  .admin-record {
    border-radius: 18px;
  }

  .portal-heading,
  .booking-card-head,
  .record-heading,
  .admin-section-title,
  .admin-heading,
  .content-admin-item,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-sidebar {
    grid-template-columns: 1fr;
  }

  .dashboard-stats,
  .admin-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .booking-actions .btn,
  .admin-actions .admin-button,
  .inline-admin-form > * {
    flex: 1 1 100%;
  }

  .inline-admin-form input,
  .inline-admin-form select,
  .inline-admin-form textarea,
  .inline-admin-form input[name="totalAmount"],
  .inline-admin-form input[name="currency"] {
    width: 100%;
  }

  .admin-top-actions {
    width: 100%;
    justify-content: space-between;
  }
}
