/* Rimba Trails — Adventure/Outdoor Off-Road theme
   Barlow Condensed headings + DM Sans body, Blaze Orange + earthy darks */

:root {
  --rt-primary: #E65100;
  --rt-primary-hover: #F57C00;
  --rt-secondary: #2A3B2A;
  --rt-dark: #121412;
  --rt-surface: #1A1D1A;
  --rt-surface-2: #22261F;
  --rt-light: #F4F5F0;
  --rt-text: #EDEFE8;
  --rt-muted: #9AA294;
  --rt-border: rgba(255,255,255,0.10);
}

[data-bs-theme="dark"] {
  --bs-primary: #E65100;
  --bs-body-bg: #121412;
  --bs-body-color: #EDEFE8;
  --bs-border-color: rgba(255,255,255,0.10);
}

* { -webkit-font-smoothing: antialiased; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--rt-dark);
  color: var(--rt-text);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6,.rt-display {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
h1 { font-weight: 900; font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-weight: 800; font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-weight: 700; }

a { color: var(--rt-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rt-primary-hover); }

.rt-muted { color: var(--rt-muted) !important; }
.rt-eyebrow {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;
  letter-spacing: .25em; font-weight: 700; color: var(--rt-primary); font-size: .95rem;
}
.section-pad { padding: 5.5rem 0; }
.text-primary-rt { color: var(--rt-primary) !important; }

/* ---- Navbar ---- */
.rt-navbar {
  background: rgba(18,20,18,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rt-border);
  padding: .85rem 0;
}
.rt-navbar .navbar-brand {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900;
  text-transform: uppercase; font-size: 1.55rem; letter-spacing: .02em; color: var(--rt-text);
}
.rt-navbar .navbar-brand i { color: var(--rt-primary); }
.rt-navbar .nav-link {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;
  font-weight: 700; letter-spacing: .05em; font-size: 1.05rem; color: var(--rt-text);
  padding: .35rem .85rem; position: relative; white-space: nowrap;
}
.rt-navbar .nav-link:hover, .rt-navbar .nav-link.active { color: var(--rt-primary); }
.rt-navbar .nav-link.active::after {
  content:''; position:absolute; left:.85rem; right:.85rem; bottom:-2px; height:2px; background:var(--rt-primary);
}
.navbar-toggler { border: 2px solid var(--rt-border); color: var(--rt-text); font-size: 1.4rem; }
.navbar-toggler:focus { box-shadow: none; }
.dropdown-menu { background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: 4px; }
.dropdown-item { color: var(--rt-text); }
.dropdown-item:hover, .dropdown-item.active { background: var(--rt-primary); color:#fff; }

/* ---- Buttons ---- */
.rt-btn, .btn.rt-btn {
  font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase;
  font-weight: 700; letter-spacing: .06em; font-size: 1.1rem;
  border-radius: 4px; padding: .7rem 1.6rem; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn-primary.rt-btn { background: var(--rt-primary); border-color: var(--rt-primary); color:#fff; }
.btn-primary.rt-btn:hover { background: var(--rt-primary-hover); border-color: var(--rt-primary-hover); transform: translateY(-4px); box-shadow: 5px 5px 0 rgba(230,81,0,.35); }
.btn-outline-rt {
  background: transparent; border: 2px solid var(--rt-text); color: var(--rt-text);
}
.btn-outline-rt:hover { background: var(--rt-text); color: var(--rt-dark); transform: translateY(-4px); }

/* ---- Hero ---- */
.rt-hero {
  position: relative; min-height: 92vh; display:flex; align-items:center;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.rt-hero::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(to right, rgba(18,20,18,0.94) 0%, rgba(18,20,18,0.55) 60%, rgba(18,20,18,0.3) 100%);
}
.rt-hero .container { position: relative; z-index: 2; }
.rt-hero h1 { text-shadow: 0 3px 18px rgba(0,0,0,.6); max-width: 15ch; }
.rt-hero p { max-width: 52ch; font-size: 1.2rem; color: #E4E7DE; }
.rt-hero-stats { display:flex; gap:2.5rem; flex-wrap:wrap; margin-top:2.5rem; }
.rt-hero-stats .num { font-family:'Barlow Condensed'; font-weight:900; font-size:2.6rem; color:var(--rt-primary); line-height:1; }
.rt-hero-stats .lbl { color:var(--rt-muted); text-transform:uppercase; letter-spacing:.15em; font-size:.8rem; }

/* ---- Section heads ---- */
.rt-sec-head { margin-bottom: 3rem; }
.rt-sec-head p { color: var(--rt-muted); max-width: 60ch; }

/* ---- Cards ---- */
.rt-card {
  background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: 6px;
  overflow: hidden; height: 100%; transition: transform .25s ease, border-color .25s ease;
}
.rt-card:hover { transform: translateY(-6px); border-color: var(--rt-primary); }
.rt-card-img { overflow: hidden; aspect-ratio: 4/3; }
.rt-card-img img { width:100%; height:100%; object-fit: cover; transition: transform .5s ease; }
.rt-card:hover .rt-card-img img { transform: scale(1.08); }
.rt-card-body { padding: 1.4rem; }
.rt-card-body h3 { font-size: 1.4rem; margin-bottom:.4rem; }
.rt-badge {
  display:inline-block; font-family:'Barlow Condensed'; text-transform:uppercase; font-weight:700;
  letter-spacing:.08em; font-size:.8rem; padding:.2rem .7rem; border-radius:3px;
  background: var(--rt-primary); color:#fff;
}
.rt-badge.alt { background: var(--rt-secondary); color: var(--rt-text); border:1px solid var(--rt-border); }
.rt-price { font-family:'Barlow Condensed'; font-weight:800; font-size:1.5rem; color:var(--rt-primary); }
.rt-meta { color: var(--rt-muted); font-size:.9rem; }

/* ---- Forms ---- */
.form-control, .form-select {
  min-height: 54px; background: var(--rt-surface); border: 1px solid var(--rt-border);
  color: var(--rt-text); border-radius: 4px;
}
textarea.form-control { min-height: 110px; }
.form-control:focus, .form-select:focus {
  background: var(--rt-surface); color: var(--rt-text);
  border-color: var(--rt-primary); box-shadow: 0 0 0 1px var(--rt-primary);
}
.form-control::placeholder { color: #6f766a; }
.form-label { font-family:'Barlow Condensed'; text-transform:uppercase; font-weight:700; letter-spacing:.05em; color:var(--rt-text); }

/* ---- Booking guest blocks ---- */
.guest-block {
  border: 2px solid var(--rt-border); border-radius: 6px; padding: 1.2rem; margin-bottom: 1rem;
  background: var(--rt-surface-2); animation: fadeUp .35s ease;
}
.guest-block h4 { font-size:1.2rem; color: var(--rt-primary); }

/* ---- Gallery bento ---- */
.rt-bento { display:grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.rt-bento img { width:100%; height:100%; object-fit:cover; border-radius:6px; aspect-ratio:1; }
.rt-bento .big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 767px){ .rt-bento { grid-template-columns: repeat(2,1fr);} .rt-bento .big{grid-column:span 2;grid-row:auto;} }

/* ---- Itinerary timeline ---- */
.rt-timeline { border-left: 3px solid var(--rt-primary); margin-left: .5rem; padding-left: 1.8rem; }
.rt-timeline .step { position: relative; padding-bottom: 2rem; }
.rt-timeline .step::before {
  content:''; position:absolute; left:-2.35rem; top:.2rem; width:16px; height:16px;
  background: var(--rt-primary); border-radius:50%; border:3px solid var(--rt-dark);
}
.rt-day-tag { font-family:'Barlow Condensed'; font-weight:800; text-transform:uppercase; color:var(--rt-primary); }

/* ---- Tables ---- */
.rt-table { width:100%; border-collapse: collapse; }
.rt-table th, .rt-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--rt-border); text-align:left; }
.rt-table th { font-family:'Barlow Condensed'; text-transform:uppercase; letter-spacing:.05em; color:var(--rt-muted); }

/* ---- Footer ---- */
.rt-footer { background: #0D0F0D; border-top: 1px solid var(--rt-border); margin-top: 4rem; }
.rt-footer-brand { font-family:'Barlow Condensed'; font-weight:900; text-transform:uppercase; font-size:1.5rem; color:var(--rt-text); }
.rt-footer-brand i { color: var(--rt-primary); }
.rt-footer-title { font-size:1.2rem; margin-bottom:1.1rem; }
.rt-footer-links { list-style:none; padding:0; margin:0; }
.rt-footer-links li { margin-bottom:.6rem; color: var(--rt-muted); }
.rt-footer-links a { color: var(--rt-muted); }
.rt-footer-links a:hover { color: var(--rt-primary); }
.rt-socials a { display:inline-flex; width:42px; height:42px; align-items:center; justify-content:center;
  border:1px solid var(--rt-border); border-radius:4px; color:var(--rt-text); margin-right:.5rem; font-size:1.1rem; transition:all .2s ease; }
.rt-socials a:hover { background: var(--rt-primary); border-color: var(--rt-primary); color:#fff; transform: translateY(-3px); }
.rt-footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem;
  border-top:1px solid var(--rt-border); padding: 1.4rem 0; color: var(--rt-muted); font-size:.9rem; }
.rt-admin-link { color: var(--rt-muted); }

/* ---- Page hero (inner pages) ---- */
.rt-page-hero { position:relative; padding: 6rem 0 3rem; background-size:cover; background-position:center; }
.rt-page-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(rgba(18,20,18,.75), rgba(18,20,18,.92)); }
.rt-page-hero .container { position:relative; z-index:2; }

/* ---- Alerts ---- */
.rt-alert { border-radius:4px; border:1px solid var(--rt-border); }

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity:0; transform: translateY(24px);} to {opacity:1; transform:none;} }
.fade-in-up { opacity:0; }
.fade-in-up.in { animation: fadeUp .7s ease forwards; }

/* ---- Admin ---- */
.rt-admin-wrap { display:flex; min-height:100vh; }
.rt-sidebar { width:250px; background:#0D0F0D; border-right:1px solid var(--rt-border); padding:1.2rem; flex-shrink:0; }
.rt-sidebar .brand { font-family:'Barlow Condensed'; font-weight:900; text-transform:uppercase; font-size:1.3rem; color:var(--rt-text); margin-bottom:1.5rem; display:block; }
.rt-sidebar a.side-link { display:flex; align-items:center; gap:.7rem; padding:.7rem .9rem; color:var(--rt-muted); border-radius:4px; margin-bottom:.25rem; font-weight:500; }
.rt-sidebar a.side-link:hover, .rt-sidebar a.side-link.active { background:var(--rt-primary); color:#fff; }
.rt-admin-main { flex:1; padding: 1.6rem 2rem; min-width:0; }
.rt-admin-topbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.6rem; padding-bottom:1rem; border-bottom:1px solid var(--rt-border); }
.rt-stat-card { background:var(--rt-surface); border:1px solid var(--rt-border); border-radius:6px; padding:1.4rem; }
.rt-stat-card .n { font-family:'Barlow Condensed'; font-weight:900; font-size:2.4rem; color:var(--rt-primary); line-height:1; }
.rt-stat-card .l { color:var(--rt-muted); text-transform:uppercase; letter-spacing:.1em; font-size:.8rem; }
.table { color: var(--rt-text); }
.table > :not(caption) > * > * { background: transparent; color: var(--rt-text); border-color: var(--rt-border); }
@media (max-width: 991px){ .rt-admin-wrap{flex-direction:column;} .rt-sidebar{width:100%;} .rt-hero{background-attachment:scroll;} }

/* auth card */
.rt-auth { min-height: 90vh; display:flex; align-items:center; }
.rt-auth-card { background:var(--rt-surface); border:1px solid var(--rt-border); border-radius:8px; padding:2.5rem; }

/* Rich article content */
.rt-article-content img { max-width:100%; height:auto; border-radius:6px; margin:1rem 0; }
.rt-article-content h2, .rt-article-content h3 { margin:1.6rem 0 .8rem; }
.rt-article-content ul, .rt-article-content ol { padding-left:1.4rem; margin-bottom:1rem; }
.rt-article-content blockquote { border-left:3px solid var(--rt-primary); padding-left:1rem; color:var(--rt-muted); margin:1rem 0; }
.rt-article-content a { color:var(--rt-primary); text-decoration:underline; }

/* Stars */
.rt-stars { color: var(--rt-primary); letter-spacing: 1px; }
.rt-stars .bi-star { color: var(--rt-muted); }
/* Interactive star rating input */
.rt-rate-input { display:inline-flex; flex-direction:row-reverse; gap:.2rem; font-size:1.7rem; }
.rt-rate-input input { display:none; }
.rt-rate-input label { color: var(--rt-muted); cursor:pointer; transition: color .15s ease; }
.rt-rate-input input:checked ~ label,
.rt-rate-input label:hover, .rt-rate-input label:hover ~ label { color: var(--rt-primary); }

/* Gallery drag-drop uploader */
.rt-dropzone { border:2px dashed var(--rt-border); border-radius:8px; padding:1.6rem; text-align:center; color:var(--rt-muted); cursor:pointer; transition:border-color .2s ease, background .2s ease; }
.rt-dropzone.drag { border-color:var(--rt-primary); background:rgba(230,81,0,.08); }
.rt-thumbs { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.8rem; }
.rt-thumb { position:relative; width:90px; height:90px; border-radius:6px; overflow:hidden; border:1px solid var(--rt-border); }
.rt-thumb img { width:100%; height:100%; object-fit:cover; }
.rt-thumb button { position:absolute; top:2px; right:2px; background:rgba(0,0,0,.7); color:#fff; border:none; border-radius:50%; width:22px; height:22px; cursor:pointer; line-height:1; }

/* Rider photo wall (marquee) */
.rt-wall { background:var(--rt-surface); overflow:hidden; }
.rt-marquee { overflow:hidden; width:100%; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.rt-marquee-track { display:flex; gap:1rem; width:max-content; animation:rtScroll 60s linear infinite; }
.rt-marquee:hover .rt-marquee-track { animation-play-state:paused; }
@keyframes rtScroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.rt-wall-card { position:relative; flex:0 0 auto; width:280px; height:340px; border-radius:8px; overflow:hidden; border:1px solid var(--rt-border); display:block; }
.rt-wall-card img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.rt-wall-card:hover img { transform:scale(1.06); }
.rt-wall-info { position:absolute; inset:auto 0 0 0; padding:1rem; background:linear-gradient(transparent, rgba(13,15,13,.92)); }
.rt-wall-info .rt-stars { display:block; font-size:.9rem; }
.rt-wall-info strong { color:#fff; display:block; font-family:'Barlow Condensed',sans-serif; text-transform:uppercase; font-size:1.15rem; }
.rt-wall-info small { color:var(--rt-muted); }
@media (max-width:767px){ .rt-wall-card{width:220px;height:280px;} }
@media (prefers-reduced-motion: reduce){ .rt-marquee-track{animation:none; overflow-x:auto;} }

/* ---- WhatsApp floating widget ---- */
.rt-wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1080; }
.rt-wa-fab {
  width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer;
  background: #25D366; color: #fff; font-size: 1.9rem; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s ease;
  animation: waPulse 2.5s infinite;
}
.rt-wa-fab:hover { transform: scale(1.08); }
@keyframes waPulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,.5);} 70%{box-shadow:0 0 0 16px rgba(37,211,102,0);} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0);} }
.rt-wa-panel {
  position: absolute; bottom: 78px; right: 0; width: 330px; max-width: 88vw;
  background: var(--rt-surface); border: 1px solid var(--rt-border); border-radius: 12px; overflow:hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5); display: none; transform-origin: bottom right;
}
.rt-wa-panel.open { display:block; animation: fadeUp .25s ease; }
.rt-wa-head { background:#075E54; color:#fff; padding: .9rem 1rem; display:flex; align-items:center; gap:.7rem; position:relative; }
.rt-wa-avatar { width:40px; height:40px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; font-size:1.3rem; }
.rt-wa-head strong { display:block; font-family:'Barlow Condensed'; text-transform:uppercase; letter-spacing:.03em; }
.rt-wa-head span { font-size:.75rem; opacity:.85; }
.rt-wa-close { position:absolute; top:8px; right:12px; background:none; border:none; color:#fff; font-size:1.5rem; line-height:1; cursor:pointer; }
.rt-wa-body { padding: 1rem; background: #0D0F0D; background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 14px 14px; }
.rt-wa-bubble { background: var(--rt-surface-2); border:1px solid var(--rt-border); padding:.8rem; border-radius: 4px 12px 12px 12px; font-size:.9rem; color:var(--rt-text); }
.rt-wa-form { padding: 1rem; display:flex; flex-direction:column; gap:.6rem; }
.rt-wa-form .form-control { min-height:44px; }
.rt-wa-form textarea.form-control { min-height:60px; }
