
/* =========================================================
   OTTO SAFARI GUIDE — TOUR DETAIL v1.1.6
   Premium UX/UI layer. Loaded after Bootstrap.
   Brand: #28B5A4 / #E48E45 / #26786E
   ========================================================= */
:root{
  --otto-teal:#28B5A4;
  --otto-teal-dark:#26786E;
  --otto-orange:#E48E45;
  --otto-heading:#232323;
  --otto-body:#494D41;
  --otto-light:rgba(40,181,164,.05);
  --otto-accent-1:#F5FBF6;
  --otto-accent-2:#FCF7EF;
  --otto-border:#E3E8E5;
  --otto-shadow:0 12px 34px rgba(35,35,35,.08);
  --otto-radius:16px;
}

/* ---------- Page canvas ---------- */
.tour-detail-page{
  background:#fff !important;
  color:var(--otto-body);
  overflow:clip;
}
.tour-detail-page .main-content-detail,
.tour-detail-page .sidebar-detail{
  min-width:0;
}
.tour-detail-page .container{
  max-width:1240px;
}

/* ---------- Hero ---------- */
.tour-detail-page .tour-hero{
  height:390px;
  background:#173d39;
}
.tour-detail-page .tour-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,77,42,.05) 25%,rgba(8,30,27,.78) 100%);
  pointer-events:none;
}
.tour-detail-page .tour-hero img{
  transition:transform .6s ease;
}
.tour-detail-page .tour-hero:hover img{
  transform:scale(1.015);
}
.tour-detail-page .hero-overlay{
  z-index:2;
  padding:clamp(24px,4vw,48px);
  background:linear-gradient(to top,rgba(8,30,27,.78),rgba(8,30,27,.04) 78%);
}
.tour-detail-page .tour-title{
  max-width:960px;
  width:auto;
  flex:1 1 auto;
  color:#fff !important;
  font-size:clamp(30px,4vw,52px) !important;
  line-height:1.08;
  font-weight:700;
  letter-spacing:-.025em;
  text-wrap:balance;
  text-shadow:0 3px 18px rgba(0,0,0,.55);
}
.tour-detail-page .btn-heart-hero{
  background:rgba(255,255,255,.14) !important;
  border:1px solid rgba(255,255,255,.55) !important;
  backdrop-filter:blur(8px);
  width:48px;height:48px;
  flex:0 0 48px;
  transition:.2s ease;
}
.tour-detail-page .btn-heart-hero:hover{
  background:#fff !important;
  color:var(--otto-orange) !important;
  transform:translateY(-2px);
}

/* ---------- Quick trust/summary strip ---------- */
.tour-detail-page .content-section:first-child{
  margin-top:28px;
}
.tour-detail-page .quick-adventure{
  margin:0;
  padding:20px 22px;
  background:linear-gradient(135deg,var(--otto-accent-1),#fff);
  border:1px solid rgba(40,181,164,.18);
  border-left:4px solid var(--otto-teal);
  border-radius:14px;
  color:var(--otto-body) !important;
  line-height:1.7;
}

/* ---------- Sections ---------- */
.tour-detail-page .content-section{
  margin-bottom:30px;
  padding:26px;
  background:#fff;
  border:1px solid var(--otto-border);
  border-radius:var(--otto-radius);
  box-shadow:0 6px 24px rgba(35,35,35,.035);
}
.tour-detail-page .section-title{
  color:var(--otto-heading) !important;
  font-size:clamp(22px,2.2vw,29px) !important;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.015em;
  margin-bottom:20px;
}
.tour-detail-page .section-title::after{
  content:"";
  display:block;
  width:42px;
  height:3px;
  margin-top:9px;
  border-radius:99px;
  background:var(--otto-orange);
}
.tour-detail-page p,
.tour-detail-page li{
  color:var(--otto-body) !important;
  line-height:1.72;
}
.tour-detail-page a{
  color:var(--otto-teal) !important;
}
.tour-detail-page a:hover{
  color:var(--otto-teal-dark) !important;
}

/* ---------- Sticky section navigation ---------- */
.tour-detail-page .tour-nav-tabs{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--otto-border);
  box-shadow:0 4px 18px rgba(35,35,35,.06);
}
.tour-detail-page .tour-nav-tabs .container{
  overflow-x:auto;
  scrollbar-width:none;
}
.tour-detail-page .tour-nav-tabs .container::-webkit-scrollbar{display:none}
.tour-detail-page .tour-nav-tabs .nav-tabs{
  flex-wrap:nowrap;
  border:0;
  gap:4px;
  min-width:max-content;
}
.tour-detail-page .tour-nav-tabs .nav-link{
  border:0 !important;
  border-bottom:3px solid transparent !important;
  border-radius:0 !important;
  padding:15px 16px 12px;
  color:var(--otto-body) !important;
  font-weight:600;
  white-space:nowrap;
  background:transparent !important;
}
.tour-detail-page .tour-nav-tabs .nav-link:hover,
.tour-detail-page .tour-nav-tabs .nav-link.active{
  color:var(--otto-teal-dark) !important;
  border-bottom-color:var(--otto-teal) !important;
}

/* ---------- Features ---------- */
.tour-detail-page .features-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.tour-detail-page .feature-item{
  display:flex;
  gap:14px;
  padding:17px;
  border:1px solid var(--otto-border);
  border-radius:13px;
  background:linear-gradient(180deg,#fff,var(--otto-accent-1));
}
.tour-detail-page .feature-icon{
  flex:0 0 42px;
  width:42px;height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:rgba(40,181,164,.11);
  color:var(--otto-teal-dark) !important;
}
.tour-detail-page .feature-content strong{
  color:var(--otto-heading) !important;
  display:block;
  margin-bottom:3px;
}

/* ---------- Sidebar booking card ---------- */
.tour-detail-page .sidebar-detail{
  position:relative;
}
.tour-detail-page .quote-card-combined{
  position:sticky;
  top:78px;
  padding:0 !important;
  overflow:hidden;
  border:1px solid var(--otto-border);
  border-radius:18px;
  box-shadow:var(--otto-shadow);
  background:#fff !important;
}
.tour-detail-page .quote-pricing-section{
  padding:24px 24px 20px !important;
  background:linear-gradient(135deg,var(--otto-accent-2),#fff);
  border-bottom:1px solid var(--otto-border);
}
.tour-detail-page .tour-price-large{
  color:var(--otto-orange) !important;
  font-size:clamp(28px,3vw,38px);
  line-height:1.05;
  letter-spacing:-.025em;
}
.tour-detail-page .tour-price-large .price-unit{
  color:var(--otto-body) !important;
  font-size:14px;
}
.tour-detail-page .included-link-blue{
  color:var(--otto-teal-dark) !important;
  font-size:14px;
  text-decoration:none;
  font-weight:600;
}
.tour-detail-page .quote-form-section-new{
  padding:22px 24px 24px !important;
}
.tour-detail-page .quote-form-title{
  color:var(--otto-heading) !important;
  font-size:22px !important;
  margin-bottom:15px;
}
.tour-detail-page .quote-input-field{
  min-height:52px;
  border:1px solid #D9E2DF !important;
  border-radius:11px !important;
  background:#fff !important;
  transition:border-color .2s,box-shadow .2s;
}
.tour-detail-page .quote-input-field:focus-within{
  border-color:var(--otto-teal) !important;
  box-shadow:0 0 0 3px rgba(40,181,164,.12);
}
.tour-detail-page .quote-input-icon{
  color:var(--otto-teal-dark) !important;
}
.tour-detail-page .btn-quote-orange,
.tour-detail-page .quote-submit-btn,
.tour-detail-page button[type="submit"]{
  background:var(--otto-orange) !important;
  color:#fff !important;
  border-radius:11px !important;
  min-height:52px;
  font-weight:700;
  border:0 !important;
  box-shadow:0 8px 18px rgba(228,142,69,.22);
}
.tour-detail-page .btn-quote-orange:hover,
.tour-detail-page .quote-submit-btn:hover,
.tour-detail-page button[type="submit"]:hover{
  background:var(--otto-teal) !important;
  transform:translateY(-1px);
}

/* ---------- Rates: premium matrix + responsive scroll ---------- */
.tour-detail-page .rates-table-container{
  background:#fff !important;
  border:1px solid var(--otto-border);
  border-radius:14px;
  overflow-x:auto;
  box-shadow:none;
}
.tour-detail-page .rates-table{
  min-width:850px;
  background:#fff !important;
}
.tour-detail-page .rates-table thead{
  background:var(--otto-teal-dark) !important;
}
.tour-detail-page .rates-table th{
  background:var(--otto-teal-dark) !important;
  color:#fff !important;
  border-color:rgba(255,255,255,.18) !important;
  padding:13px 12px;
  font-size:12px;
  white-space:nowrap;
}
.tour-detail-page .rates-table th .room-info{
  color:rgba(255,255,255,.72) !important;
}
.tour-detail-page .rates-table td{
  color:var(--otto-body) !important;
  background:#fff !important;
  border-color:var(--otto-border) !important;
  padding:14px 12px;
  font-size:13px;
}
.tour-detail-page .rates-table tbody tr:nth-child(even) td{
  background:#FAFCFB !important;
}
.tour-detail-page .rates-table tbody tr:hover td{
  background:var(--otto-accent-1) !important;
}
.tour-detail-page .rates-table td:not(:first-child){
  color:var(--otto-heading) !important;
  font-weight:700;
}
.tour-detail-page .get-quote-link{
  color:#fff !important;
  background:var(--otto-orange);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:8px;
  font-weight:700;
  text-decoration:none !important;
}
.tour-detail-page .get-quote-link:hover{
  background:var(--otto-teal);
}
.otto-rate-visual{
  margin-top:18px;
  padding:20px;
  border:1px solid var(--otto-border);
  border-radius:14px;
  background:linear-gradient(135deg,#fff,var(--otto-accent-1));
}
.otto-rate-visual-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:end;
  margin-bottom:16px;
}
.otto-rate-visual-title{
  margin:0;
  color:var(--otto-heading);
  font-size:18px;
  font-weight:700;
}
.otto-rate-visual-note{
  margin:0;
  color:#69736d;
  font-size:12px;
}
.otto-rate-bars{
  display:grid;
  gap:11px;
}
.otto-rate-row{
  display:grid;
  grid-template-columns:88px minmax(0,1fr) 105px;
  align-items:center;
  gap:10px;
}
.otto-rate-label{
  font-size:13px;
  font-weight:700;
  color:var(--otto-body);
}
.otto-rate-track{
  height:10px;
  border-radius:99px;
  background:#E8EFEC;
  overflow:hidden;
}
.otto-rate-bar{
  height:100%;
  width:var(--rate-width,60%);
  border-radius:99px;
  background:linear-gradient(90deg,var(--otto-teal),var(--otto-teal-dark));
}
.otto-rate-value{
  text-align:right;
  color:var(--otto-orange);
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
}

/* ---------- Related tours ---------- */
.tour-detail-page .related-tours-section{
  background:var(--otto-accent-1);
  border-color:rgba(40,181,164,.16);
}
.tour-detail-page .related-tours-section .safari-card{
  border:1px solid var(--otto-border);
  box-shadow:0 8px 24px rgba(35,35,35,.07);
  border-radius:14px;
  overflow:hidden;
}
.tour-detail-page .related-tours-section .safari-title-overlay{
  color:#fff !important;
  text-shadow:0 2px 10px rgba(0,0,0,.7);
}
.tour-detail-page .related-tours-section .safari-price{
  color:var(--otto-orange) !important;
}

/* ---------- Full-width related safari cards ---------- */
.tour-detail-page .related-tours-container{
  width:100%;
  max-width:1200px;
  margin:28px auto 0;
  padding:0 20px;
}
.tour-detail-page .related-tours-container .related-tours-section{
  width:100%;
  margin:0;
}
.tour-detail-page .related-tours-section .related-tours-intro{
  max-width:760px;
  margin:-8px 0 22px;
  color:var(--otto-body);
  line-height:1.6;
}
.tour-detail-page .related-tours-section .row{
  margin-left:-10px;
  margin-right:-10px;
}
.tour-detail-page .related-tours-section .row > [class*="col-"]{
  padding-left:10px;
  padding-right:10px;
}
.tour-detail-page .related-tours-section .safari-card-link{
  display:flex;
  height:100%;
  color:inherit;
  text-decoration:none;
}
.tour-detail-page .related-tours-section .safari-card{
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
}
.tour-detail-page .related-tours-section .safari-image{
  height:210px;
  overflow:hidden;
}
.tour-detail-page .related-tours-section .safari-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.tour-detail-page .related-tours-section .safari-content{
  min-width:0;
  flex:1;
}
.tour-detail-page .related-tours-section .safari-title-overlay{
  overflow-wrap:anywhere;
  color:#fff !important;
}
.tour-detail-page .related-tours-section .safari-quick-adventure{
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
}

/* ---------- Mobile ---------- */
@media (max-width:767.98px){
  .tour-detail-page .tour-hero{
    height:310px;
  }
  .tour-detail-page .hero-overlay{
    padding:20px 16px;
  }
  .tour-detail-page .tour-title{
    font-size:27px !important;
    line-height:1.12;
    max-width:calc(100% - 58px);
  }
  .tour-detail-page .tour-nav-tabs .nav-link{
    padding:13px 12px 10px;
    font-size:13px;
  }
  .tour-detail-page .content-section{
    padding:19px 16px;
    margin-bottom:18px;
    border-radius:13px;
  }
  .tour-detail-page .features-grid{
    grid-template-columns:1fr;
  }
  .tour-detail-page .feature-item{
    padding:14px;
  }
  .tour-detail-page .sidebar-detail{
    order:-1;
  }
  .tour-detail-page .quote-card-combined{
    position:relative;
    top:auto;
    margin:0 0 18px;
  }
  .tour-detail-page .quote-pricing-section{
    padding:20px 18px 16px !important;
  }
  .tour-detail-page .quote-form-section-new{
    padding:18px !important;
  }
  .tour-detail-page .tour-price-large{
    font-size:30px;
  }
  .otto-rate-visual{
    padding:16px;
  }
  .otto-rate-visual-head{
    display:block;
  }
  .otto-rate-visual-note{
    margin-top:5px;
  }
  .otto-rate-row{
    grid-template-columns:74px minmax(0,1fr) 82px;
    gap:8px;
  }
  .otto-rate-label,.otto-rate-value{
    font-size:12px;
  }
}

@media (max-width:767.98px){
  .tour-detail-page .related-tours-container{
    margin-top:18px;
    padding:0 14px;
  }
  .tour-detail-page .related-tours-section .safari-image{
    height:205px;
  }
  .tour-detail-page .related-tours-section .row{
    margin-left:-7px;
    margin-right:-7px;
  }
  .tour-detail-page .related-tours-section .row > [class*="col-"]{
    padding-left:7px;
    padding-right:7px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .tour-detail-page *{
    scroll-behavior:auto !important;
    transition:none !important;
  }
}
