/* Travel Express Services — UI overlay on the template */
:root {
  --tes-teal: #01b3a7;
  --tes-teal-dark: #01958b;
  --tes-navy: #0f2b4d;
  --tes-ink: #1b2430;
  --tes-muted: #5c6777;
  --tes-line: #e6eceb;
  --tes-paper: #f6f9f8;
  --tes-shadow: 0 18px 40px rgba(15, 43, 77, 0.12);
  --tes-radius: 18px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  color: var(--tes-ink);
}

img {
  max-width: 100%;
  height: auto;
}

/* Hero: keep captions readable over photos */
.swiper-slider-corporate .swiper-slide.context-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 43, 77, 0.78) 0%, rgba(15, 43, 77, 0.38) 48%, rgba(15, 43, 77, 0.16) 100%);
  pointer-events: none;
  z-index: 1;
}

.swiper-slider-corporate .swiper-slide-caption {
  position: relative;
  z-index: 2;
}

.button,
.button.button-pipaluk,
.button.button-ujarak,
.button.button-secondary,
.button.button-primary,
.button.button-default-outline,
.button.button-default-outline-2,
.button.button-black-outline {
  border-radius: 999px;
  overflow: hidden !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 220px;
  padding: 14px 28px !important;
  font-size: 14px;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
}

.button-pipaluk::before,
.button-pipaluk::after,
.button-ujarak::before {
  content: none !important;
  display: none !important;
}

.button-pipaluk,
.button-pipaluk:focus,
.button-secondary.button-pipaluk,
.button-secondary.button-pipaluk:focus,
.button-primary.button-pipaluk,
.button-primary.button-pipaluk:focus {
  background: var(--tes-teal) !important;
  border: 2px solid var(--tes-teal) !important;
  color: #fff !important;
}

.button-pipaluk:hover,
.button-pipaluk:active,
.button-secondary.button-pipaluk:hover,
.button-secondary.button-pipaluk:active,
.button-primary.button-pipaluk:hover,
.button-primary.button-pipaluk:active {
  background: var(--tes-navy) !important;
  border-color: var(--tes-navy) !important;
  color: #fff !important;
}

.swiper-slide-caption .button {
  background: var(--tes-teal);
  border-color: var(--tes-teal);
  color: #fff;
  padding: 14px 28px;
  box-shadow: 0 12px 28px rgba(1, 179, 167, 0.32);
}

.swiper-slide-caption .button:hover,
.swiper-slide-caption .button:focus {
  background: var(--tes-teal-dark);
  border-color: var(--tes-teal-dark);
  color: #fff;
}

.rd-navbar-corporate .button-default-outline-2 {
  background: var(--tes-teal);
  border-color: var(--tes-teal);
  color: #fff;
}

.rd-navbar-corporate .button-default-outline-2:hover {
  background: var(--tes-navy);
  border-color: var(--tes-navy);
  color: #fff;
}

.button-black-outline,
.button-black-outline:focus {
  background: transparent !important;
  border: 2px solid var(--tes-navy) !important;
  color: var(--tes-navy) !important;
}

.button-black-outline:hover,
.button-black-outline:active {
  background: var(--tes-navy) !important;
  color: #fff !important;
}

.rd-navbar-corporate-contacts .link-phone {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Section rhythm */
.tes-section-head {
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.tes-section-head h3,
.tes-section-head h2 {
  margin-bottom: 10px;
}

.tes-section-head p {
  margin: 0;
  color: var(--tes-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Service cards */
.box-icon-classic {
  height: 100%;
  padding: 8px;
  border-radius: var(--tes-radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.desktop .box-icon-classic:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: var(--tes-shadow);
}

.box-icon-classic-title a:hover {
  color: var(--tes-teal);
}

/* Tours */
.product-big-figure img,
.product-big-figure picture,
.box-categories-list img {
  border-radius: 14px;
}

.product-big-body .button {
  border-radius: 999px;
}

/* Reviews / trust */
.tes-google-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}

#hot-tours,
#trust,
#reviews,
#about,
#services,
#contact-us,
#quote {
  scroll-margin-top: 24px;
}

.tes-google-mark {
  display: flex;
  flex-shrink: 0;
}

.tes-google-score-value {
  margin: 0;
  color: var(--tes-navy);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.tes-google-score-meta {
  margin: 6px 0 0;
  color: var(--tes-muted);
  font-size: 14px;
}

.tes-google-score-meta a {
  color: var(--tes-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tes-google-score-meta a:hover {
  color: var(--tes-teal-dark);
}

.tes-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 28px;
  text-align: left;
}

.tes-review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--tes-line);
  border-radius: var(--tes-radius);
  padding: 24px 22px 22px;
  box-shadow: 0 8px 24px rgba(15, 43, 77, 0.06);
}

.tes-review-card p {
  margin: 12px 0 16px;
  color: var(--tes-ink);
  font-size: 16px;
  line-height: 1.65;
}

.tes-review-card footer {
  color: var(--tes-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tes-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.tes-review-actions .button {
  min-height: 52px;
  height: 52px;
  min-width: 260px;
  padding: 14px 28px !important;
  font-size: 14px;
  line-height: 1;
}

.tes-section-head a {
  color: var(--tes-teal-dark);
  font-weight: 600;
}

.tes-section-head a:hover {
  color: var(--tes-navy);
}

/* Instagram catalog / hot tours */
.tes-ig-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 22px;
  margin: 8px 0 36px;
}

.tes-ig-highlight {
  width: 92px;
  color: var(--tes-navy);
  text-align: center;
  text-decoration: none;
}

.tes-ig-highlight:hover,
.tes-ig-highlight:focus {
  color: var(--tes-teal-dark);
}

.tes-ig-ring {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 8px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}

.tes-ig-ring img {
  display: block;
  width: 80px;
  height: 80px;
  border: 3px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.tes-ig-highlight span:last-child {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.tes-ig-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

@media (min-width: 992px) {
  .tes-ig-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .tes-ig-card {
    grid-column: span 3;
  }

  .tes-ig-card:nth-child(5) {
    grid-column: 2 / span 3;
  }

  .tes-ig-card:nth-child(6) {
    grid-column: 5 / span 3;
  }

  .tes-ig-card:nth-child(7) {
    grid-column: 8 / span 3;
  }
}

.tes-ig-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--tes-radius);
  box-shadow: 0 10px 28px rgba(15, 43, 77, 0.12);
  color: #fff;
}

.tes-ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.tes-ig-card img[src*="highlight-south-africa"] {
  transform: scale(1.45);
}

.desktop .tes-ig-card:hover img,
.desktop .tes-ig-card:focus img {
  transform: scale(1.08);
}

.desktop .tes-ig-card:hover img[src*="highlight-south-africa"],
.desktop .tes-ig-card:focus img[src*="highlight-south-africa"] {
  transform: scale(1.55);
}

.tes-ig-card-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(15, 43, 77, 0.88));
}

.tes-ig-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tes-ig-card-copy strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

#hot-tours .tes-review-actions {
  margin-top: 8px;
}

.tes-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tes-trust-item {
  background: #fff;
  border: 1px solid var(--tes-line);
  border-radius: 16px;
  padding: 22px 16px;
  box-shadow: 0 8px 24px rgba(15, 43, 77, 0.06);
}

.tes-trust-item strong {
  display: block;
  color: var(--tes-navy);
  font-size: 22px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.tes-trust-item span {
  color: var(--tes-muted);
  font-size: 13px;
  line-height: 1.45;
}

.google-reviews-box .google-rating,
.tes-review-card .google-rating {
  display: flex;
  gap: 2px;
}

#trust .google-reviews-box .google-rating {
  justify-content: center;
}

.google-reviews-box .google-rating .icon,
.tes-review-card .google-rating .icon {
  color: #fbbc04;
  font-size: 22px;
}

.tes-google-score .google-rating .icon {
  font-size: 20px;
}

/* Contact */
.tes-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.tes-map,
.google-map-embed {
  overflow: hidden;
  border-radius: var(--tes-radius);
  box-shadow: var(--tes-shadow);
  min-height: 100%;
}

.tes-map iframe,
.google-map-embed iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.tes-map-banner iframe {
  min-height: 300px;
  height: 300px;
}

.section-first img {
  border-radius: 16px;
}

.tes-contact-cards {
  display: grid;
  gap: 16px;
}

.tes-contact-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid var(--tes-line);
  border-radius: 16px;
  padding: 20px 18px;
  min-height: 0;
  height: auto;
  box-shadow: 0 8px 22px rgba(15, 43, 77, 0.05);
  text-align: left;
}

.desktop .box-contacts.tes-contact-card,
.desktop .box-contacts.tes-contact-card:hover {
  min-height: 0;
  height: auto;
  border: 1px solid var(--tes-line);
  box-shadow: 0 8px 22px rgba(15, 43, 77, 0.05);
}

.tes-contact-card .box-contacts-icon {
  font-size: 32px;
  flex: 0 0 auto;
  line-height: 1;
}

.tes-contact-card .box-contacts-decor {
  display: none;
}

.tes-contact-card .box-contacts-body {
  max-width: none;
  flex: 1;
}

.tes-contact-label {
  display: block;
  margin-bottom: 4px;
  color: var(--tes-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tes-contact-card .box-contacts-link {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.tes-contact-card .box-contacts-link a {
  color: var(--tes-navy);
  word-break: break-word;
}

.tes-contact-card .box-contacts-link a:hover {
  color: var(--tes-teal);
}

.tes-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tes-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.tes-chip-whatsapp {
  background: #25d366;
  color: #fff;
}

.tes-chip-call {
  background: var(--tes-navy);
  color: #fff;
}

.tes-chip:hover {
  opacity: 0.92;
  color: #fff;
}

/* Quote form */
.tes-form-card {
  background: #fff;
  border-radius: var(--tes-radius);
  box-shadow: var(--tes-shadow);
  overflow: hidden;
  border: 1px solid var(--tes-line);
}

.tes-form-card iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  background: #fff;
}

.breadcrumbs-custom {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breadcrumbs-custom .box-position {
  filter: brightness(0.52) saturate(1.05);
}

.breadcrumbs-custom-title {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.form-wrap .form-input,
.rd-form .form-input {
  border-radius: 12px;
}

/* Floating WhatsApp */
.tes-fab {
  position: fixed;
  right: 26px;
  bottom: 100px;
  z-index: 10050;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tes-fab:hover,
.tes-fab:focus {
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.55);
}

.tes-fab svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.tes-fab span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 991.98px) {
  .tes-ig-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tes-review-grid,
  .tes-trust,
  .tes-contact-grid {
    grid-template-columns: 1fr;
  }

  .tes-map iframe,
  .google-map-embed iframe {
    min-height: 280px;
  }

  html {
    scroll-padding-top: 72px;
  }
}

@media (max-width: 575.98px) {
  .tes-trust,
  .tes-ig-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tes-review-grid {
    grid-template-columns: 1fr;
  }

  .tes-review-actions .button {
    width: 100%;
    min-width: 0;
    max-width: 320px;
  }

  .swiper-slide-caption .button,
  .rd-navbar-corporate .button-default-outline-2 {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .box-icon-classic,
  .tes-fab {
    transition: none;
  }
}
