/* SL Safari Booking – front end */
:root {
  --slsb-primary: #1c3a2e;
  --slsb-accent: #c45c26;
  --slsb-line: #e3e6e4;
  --slsb-soft: #f5f7f6;
  --slsb-text: #1f2523;
  --slsb-muted: #5f6b66;
  --slsb-radius: 10px;
}

.slsb-listing,
.slsb-book,
.slsb-details,
.slsb-confirm,
.slsb-price-table { color: var(--slsb-text); box-sizing: border-box; }
.slsb-listing *, .slsb-book *, .slsb-details *, .slsb-confirm * { box-sizing: border-box; }
[data-slsb-card][hidden], .slsb-book [hidden], .slsb-empty[hidden] { display: none !important; }

/* Buttons & inputs */
.slsb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--slsb-primary); color: #fff !important; font-family: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none !important; line-height: 1.2; transition: filter .15s, transform .15s;
}
.slsb-btn:hover { filter: brightness(1.12); }
.slsb-btn:disabled { opacity: .6; cursor: wait; }
.slsb-btn-block { display: flex; width: 100%; }
.slsb-btn-accent { background: var(--slsb-accent); }
.slsb-btn-wa { background: #1f9d55; margin-top: 10px; }
.slsb-input {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd5d2; border-radius: 8px;
  background: #fff; color: var(--slsb-text); font: inherit; font-size: 15px; min-height: 44px;
}
.slsb-input:focus { outline: 2px solid var(--slsb-primary); outline-offset: 1px; border-color: var(--slsb-primary); }

/* Listing */
.slsb-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.slsb-filters .slsb-input { flex: 1 1 200px; width: auto; }
.slsb-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slsb-cols-1 { grid-template-columns: 1fr; }
.slsb-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slsb-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .slsb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .slsb-grid { grid-template-columns: 1fr; } }

.slsb-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--slsb-line);
  border-radius: var(--slsb-radius); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.slsb-card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.08); transform: translateY(-2px); }
.slsb-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--slsb-soft); overflow: hidden; }
.slsb-card-media img, .slsb-cat-media img {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0;
}
.slsb-chip {
  position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--slsb-primary);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em;
}
.slsb-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.slsb-card-loc { font-size: 13px; color: var(--slsb-muted); }
.slsb-card-title { font-size: 19px; line-height: 1.3; margin: 0; }
.slsb-card-title a { color: inherit; text-decoration: none; }
.slsb-card-excerpt { font-size: 14px; color: var(--slsb-muted); margin: 0; }
.slsb-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 8px; }
.slsb-card-price small { display: block; font-size: 12px; color: var(--slsb-muted); line-height: 1.2; }
.slsb-card-price strong { font-size: 22px; color: var(--slsb-primary); }
.slsb-card-duration { font-size: 13px; color: var(--slsb-muted); text-align: right; }
.slsb-empty { padding: 20px; text-align: center; color: var(--slsb-muted); }

/* Category tiles */
.slsb-cats { gap: 28px; }
.slsb-cat { display: flex; flex-direction: column; gap: 14px; text-decoration: none !important; color: var(--slsb-text) !important; }
.slsb-cat-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--slsb-soft); border-radius: 4px; }
.slsb-cat-media img { transition: transform .5s ease; }
.slsb-cat:hover .slsb-cat-media img { transform: scale(1.06); }
.slsb-cat-name { text-align: center; font-weight: 700; font-size: 18px; }
.slsb-cat-count { background: var(--slsb-badge, #fff200); padding: 0 3px; border-radius: 2px; }
.slsb-cat:hover .slsb-cat-name { color: var(--slsb-primary); }

/* Tour details */
/* Side-by-side only when the theme's content column is wide enough. */
.slsb-tour-extra { margin-top: 40px; container-type: inline-size; }
.slsb-tour-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.slsb-tour-grid .slsb-book { position: static; }
@container (min-width: 880px) {
  .slsb-tour-grid { grid-template-columns: minmax(0, 1fr) 380px; }
  .slsb-tour-grid .slsb-book { position: sticky; }
}
.slsb-details h3, .slsb-book h3, .slsb-price-table h3 { font-size: 20px; margin: 0 0 12px; }
.slsb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 24px; }
.slsb-facts div { background: var(--slsb-soft); border-radius: 8px; padding: 12px 14px; }
.slsb-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--slsb-muted); }
.slsb-facts dd { margin: 4px 0 0; font-weight: 600; }
.slsb-sessions ul { list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--slsb-line); border-radius: 8px; }
.slsb-sessions li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 14px; border-top: 1px solid var(--slsb-line); }
.slsb-sessions li:first-child { border-top: 0; }
.slsb-sessions li span { color: var(--slsb-muted); }
.slsb-package-main { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; }
.slsb-package-price { font-weight: 600; color: var(--slsb-primary); white-space: nowrap; }
.slsb-link { margin-left: auto; color: var(--slsb-accent); font-weight: 600; text-decoration: none; }
.slsb-price-table { margin: 0 0 24px; }
.slsb-price-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.slsb-price-table th, .slsb-price-table td { padding: 10px 12px; border-bottom: 1px solid var(--slsb-line); text-align: left; }
.slsb-price-table thead th { background: var(--slsb-primary); color: #fff; font-weight: 600; }
.slsb-table-scroll { overflow-x: auto; }
.slsb-price-table td small { display: block; color: var(--slsb-muted); font-size: 12px; }
.slsb-price-table thead small { font-weight: 400; opacity: .85; }
.slsb-price-table tbody th { font-weight: 500; }
.slsb-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.slsb-list ul { margin: 0; padding-left: 20px; }
.slsb-list li { margin: 4px 0; }
.slsb-list-includes li::marker { content: "✓  "; color: #1f9d55; }
.slsb-list-excludes li::marker { content: "✕  "; color: #b3261e; }
.slsb-note { font-size: 14px; color: var(--slsb-muted); margin: 16px 0 0; }

/* Booking panel */
.slsb-book {
  position: sticky; top: 100px; background: #fff; border: 1px solid var(--slsb-line);
  border-radius: var(--slsb-radius); padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.06); scroll-margin-top: 100px;
}
.slsb-book-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.slsb-book-head h3 { margin: 0; }
.slsb-from { font-size: 14px; color: var(--slsb-muted); }
.slsb-from { color: var(--slsb-primary); font-weight: 600; font-size: 15px; }
.slsb-step { display: flex; flex-direction: column; gap: 14px; }
.slsb-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.slsb-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.slsb-field > span { font-size: 13px; font-weight: 600; }
.slsb-field small { font-weight: 400; color: var(--slsb-muted); }
.slsb-stepper-ctl { display: flex; align-items: stretch; border: 1px solid #cfd5d2; border-radius: 8px; overflow: hidden; background: #fff; }
.slsb-book .slsb-stepper-ctl button {
  width: 42px; min-width: 42px; height: auto; border: 0 !important; border-radius: 0 !important; margin: 0;
  background: var(--slsb-soft) !important; color: var(--slsb-primary) !important; box-shadow: none !important;
  font: 400 20px/1 system-ui, sans-serif; cursor: pointer; padding: 0 !important;
}
.slsb-book .slsb-stepper-ctl button:hover { background: #e7ece9 !important; }
.slsb-book .slsb-back { background: none !important; color: var(--slsb-primary) !important; border: 0 !important; box-shadow: none !important; }
.slsb-facts dd, .slsb-facts dt { padding: 0; margin-left: 0; }
.slsb-stepper-ctl .slsb-input { border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; appearance: textfield; padding: 8px 4px; }
.slsb-stepper-ctl .slsb-input::-webkit-inner-spin-button, .slsb-stepper-ctl .slsb-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.slsb-options { border: 1px solid var(--slsb-line); border-radius: 8px; padding: 8px 12px 10px; margin: 0; }
.slsb-options legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.slsb-option { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: center; padding: 6px 0; cursor: pointer; }
.slsb-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--slsb-primary); }
.slsb-option small { grid-column: 2; color: var(--slsb-muted); font-size: 12px; }
.slsb-option.is-included { grid-template-columns: 1fr auto; cursor: default; color: #1f7a45; }
.slsb-summary { background: var(--slsb-soft); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.slsb-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.slsb-lines li, .slsb-total, .slsb-pay { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.slsb-lines li span:first-child { color: var(--slsb-muted); }
.slsb-total { border-top: 1px solid var(--slsb-line); padding-top: 8px; font-size: 16px; }
.slsb-pay:first-of-type { color: var(--slsb-accent); }
.slsb-back { background: none; border: 0; padding: 0; color: var(--slsb-primary); cursor: pointer; text-align: left; font-size: 14px; }
.slsb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.slsb-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--slsb-primary); }
.slsb-err { display: none; color: #b3261e; font-size: 13px; font-style: normal; }
.slsb-err.is-on { display: block; }
.slsb-form-err.is-on { background: #fdecea; padding: 10px 12px; border-radius: 8px; }
.slsb-secure { text-align: center; font-size: 12px; color: var(--slsb-muted); margin: 0; }
.slsb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Plugin page layouts (single tour, tour lists) */
.slsb-page { color: var(--slsb-text); font-family: inherit; overflow-x: clip; }
.slsb-page *, .slsb-page *::before, .slsb-page *::after { box-sizing: border-box; }
.slsb-hero {
  position: relative; display: flex; align-items: flex-end; min-height: 460px;
  background: var(--slsb-primary) center / cover no-repeat; color: #fff;
}
.slsb-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.72) 100%);
}
.slsb-hero-short { min-height: 340px; }
.slsb-hero-inner { position: relative; width: 100%; max-width: 1320px; margin: 0 auto; padding: 48px 20px 44px; }
.slsb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 14px; opacity: .9; }
.slsb-crumbs a { color: #fff !important; text-decoration: none; }
.slsb-crumbs a:hover { text-decoration: underline; }
.slsb-hero-title {
  color: #fff !important; font-family: inherit; font-weight: 700; margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.12; max-width: 900px; text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.slsb-hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.slsb-hero-meta li {
  background: rgba(255,255,255,.16); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.25);
  padding: 6px 14px; border-radius: 99px; font-size: 14px; margin: 0;
}
.slsb-hero-cta { padding: 13px 28px; }

.slsb-container { max-width: 1320px; margin: 0 auto; padding: 48px 20px 64px; }
.slsb-single-tour > .slsb-container { padding-top: 24px; padding-bottom: 24px; }
.slsb-single-tour > .slsb-container.slsb-top { padding-top: 32px; }
.slsb-single-tour > .slsb-container:last-of-type { padding-bottom: 64px; }
.slsb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.slsb-main { min-width: 0; }
/* Title block */
.slsb-top { padding-top: 32px; padding-bottom: 8px; }
.slsb-head { margin-bottom: 22px; }
.slsb-head .slsb-crumbs { color: var(--slsb-muted); opacity: 1; margin-bottom: 10px; }
.slsb-head .slsb-crumbs a { color: var(--slsb-muted) !important; }
.slsb-head .slsb-crumbs a:hover { color: var(--slsb-primary) !important; }
.slsb-title {
  font-family: inherit; font-weight: 700; color: var(--slsb-text); margin: 0 0 14px; padding: 0;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.01em;
}
.slsb-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.slsb-meta li { background: var(--slsb-soft); border: 1px solid var(--slsb-line); padding: 6px 14px; border-radius: 99px; font-size: 14px; margin: 0; }
.slsb-meta li.is-cat { background: var(--slsb-primary); border-color: var(--slsb-primary); color: #fff; font-weight: 600; }
.slsb-meta strong { color: var(--slsb-primary); }
.slsb-lead { font-size: 16px; line-height: 1.7; margin: 0 0 24px; }
.slsb-lead p { margin: 0 0 12px; text-align: left !important; }
.slsb-lead > :last-child { margin-bottom: 0; }

/* Photo gallery */
.slsb-gallery { margin: 0 0 28px; }
.slsb-gallery-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--slsb-soft); }
.slsb-gallery-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; aspect-ratio: 3 / 2;
}
.slsb-gallery-track::-webkit-scrollbar { display: none; }
.slsb-page .slsb-gallery-slide {
  position: relative; flex: 0 0 100%; scroll-snap-align: start; height: 100%; min-height: 0;
  padding: 0 !important; margin: 0; border: 0 !important; border-radius: 0 !important;
  background: #0d1512 !important; box-shadow: none !important; cursor: zoom-in; overflow: hidden;
}
.slsb-gallery-slide img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0; }
.slsb-page .slsb-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0 !important;
  border: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.92) !important; color: #111 !important;
  font: 400 28px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2) !important;
  display: flex; align-items: center; justify-content: center; padding-bottom: 4px !important;
}
.slsb-page .slsb-gallery-nav:hover { background: #fff !important; }
.slsb-gallery-nav.is-prev { left: 14px; }
.slsb-gallery-nav.is-next { right: 14px; }
.slsb-gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.slsb-gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.slsb-page .slsb-gallery-thumb {
  position: relative; aspect-ratio: 4 / 3; padding: 0 !important; margin: 0; border: 0 !important; border-radius: 8px !important;
  overflow: hidden; cursor: pointer; background: var(--slsb-soft) !important; opacity: .65; box-shadow: none !important;
  outline: 2px solid transparent; outline-offset: 0; transition: opacity .2s; min-height: 0;
}
.slsb-page .slsb-gallery-thumb:hover, .slsb-page .slsb-gallery-thumb.is-active { opacity: 1; }
.slsb-page .slsb-gallery-thumb.is-active { outline-color: var(--slsb-primary); }
.slsb-gallery-thumb img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; display: block; margin: 0; }

/* Full-screen photo viewer */
.slsb-lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(8,12,10,.95); display: flex; align-items: center; justify-content: center; }
.slsb-lightbox[hidden] { display: none; }
.slsb-lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.slsb-lightbox button {
  position: absolute; width: 48px; height: 48px; padding: 0 0 4px !important; border: 0 !important; border-radius: 50% !important;
  background: rgba(255,255,255,.14) !important; color: #fff !important; font: 400 30px/1 system-ui, sans-serif; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: none !important;
}
.slsb-lightbox button:hover { background: rgba(255,255,255,.28) !important; }
.slsb-lightbox [data-lb="close"] { top: 18px; right: 18px; }
.slsb-lightbox [data-lb="-1"] { left: 18px; top: 50%; transform: translateY(-50%); }
.slsb-lightbox [data-lb="1"] { right: 18px; top: 50%; transform: translateY(-50%); }
.slsb-lightbox-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 14px; }

/* The tour's own content, at the full width it was designed for */
.slsb-about { padding-top: 24px; padding-bottom: 24px; }
.slsb-content { overflow-x: clip; }
.slsb-content > .elementor { max-width: 100%; }
.slsb-content .e-con.e-con-boxed > .e-con-inner { max-width: 100%; }
.slsb-aside { position: sticky; top: 110px; }
.slsb-aside .slsb-book { position: static; }
.admin-bar .slsb-aside { top: 142px; }
.slsb-related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--slsb-line); }
.slsb-related h2 { font-size: 28px; margin: 0 0 24px; }
.slsb-archive-intro { max-width: 820px; margin: 0 0 28px; font-size: 16px; }
.slsb-mobile-book { display: none; }

@media (max-width: 1024px) {
  .slsb-layout { grid-template-columns: 1fr; gap: 32px; }
  .slsb-aside { position: static; }
  .slsb-hero { min-height: 360px; }
  .slsb-mobile-book {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 999;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 18px; border-radius: 12px; background: var(--slsb-primary); color: #fff !important;
    text-decoration: none !important; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 15px;
  }
  .slsb-mobile-book b { background: var(--slsb-accent); padding: 8px 16px; border-radius: 8px; }
  .slsb-single-tour { padding-bottom: 70px; }
}
@media (max-width: 640px) {
  .slsb-hero-inner { padding: 32px 16px 28px; }
  .slsb-container { padding: 32px 16px 48px; }
  .slsb-hero-cta { display: none; }
}

/* Confirmation */
.slsb-confirm { max-width: 760px; margin: 0 auto; }
.slsb-confirm-head { border-radius: var(--slsb-radius); padding: 22px 24px; margin-bottom: 20px; background: var(--slsb-soft); border-left: 5px solid var(--slsb-muted); }
.slsb-confirm.is-success .slsb-confirm-head { background: #e9f6ee; border-color: #1f9d55; }
.slsb-confirm.is-warning .slsb-confirm-head { background: #fff5e6; border-color: #d98a00; }
.slsb-confirm h2 { margin: 0 0 8px; font-size: 24px; }
.slsb-ref strong { font-size: 18px; letter-spacing: .04em; }
.slsb-confirm-table { width: 100%; border-collapse: collapse; }
.slsb-confirm-table th, .slsb-confirm-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--slsb-line); }
.slsb-confirm-table th { width: 38%; color: var(--slsb-muted); font-weight: 500; }

@media (max-width: 640px) {
  .slsb-book { position: static; padding: 16px; }
  .slsb-confirm-table th { width: 45%; }
}
.slsb-all-link { text-align: center; margin: 40px 0 0; }
