/* CTA */
.cta-section { background: var(--brand-primary); color: #fff; text-align: center; padding: 60px 20px; margin: 60px 0; }
.cta-title { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.cta-description { font-size: 16px; margin-bottom: 32px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-whatsapp { background: #25D366; color: #fff; padding: 14px 28px; border: none; border-radius: 25px; font-size: 16px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background-color 0.3s; }
.btn-whatsapp:hover { background: #1da954; }
.btn-secondary { background: transparent; color: #fff; padding: 14px 28px; border: 2px solid #fff; border-radius: 25px; font-size: 16px; font-weight: 500; text-decoration: none; transition: all 0.3s; }
.btn-secondary:hover { background: #fff; color: var(--brand-primary); }

.site-footer { background: var(--brand-bg); padding: 40px 0 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #333; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }
.footer-section ul li a { color: #666; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-section ul li a:hover { color: var(--brand-primary); }
.footer-bottom { border-top: 1px solid #e9ecef; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 14px; color: #666; }
.footer-bottom a { color: #666; text-decoration: none; }
.footer-bottom a:hover { color: var(--brand-primary); }

/* Loading + Notifications */
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--brand-primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0%{transform:rotate(0)} 100%{transform:rotate(360%)} }
.notification { position: fixed; top: 20px; right: 20px; padding: 16px 24px; border-radius: 8px; color: #fff; font-weight: 500; z-index: 10000; transform: translateX(100%); transition: transform .3s ease; max-width: 300px; }
.notification.show { transform: translateX(0); }
.notification-success { background: #28a745; }
.notification-error { background: #dc3545; }
.notification-warning { background: #ffc107; color: #333; }
.notification-info { background: #17a2b8; }

/* ---------- Running Offer Bar (ultra-thin) ---------- */
.cc-offer-bar{
  background: linear-gradient(90deg, #0ea44e, #16a34a 55%, #22c55e);
  color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1000;
}
.cc-offer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px 12px;           /* +1px taller, a bit wider */
  min-height: 24px;            /* prevents descenders clipping */
  display: flex;
  align-items: center;
  justify-content: center;     /* center dot + text */
  gap: 8px;                    /* dot close to text */
}
.cc-offer-dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: ccPulse 1.8s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes ccPulse{
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70%{ box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.cc-offer-text{
  font-size: 13px;
  line-height: 1.15;           /* fix descenders like “g”, “p” */
  letter-spacing: .2px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Mobile */
@media (max-width: 767.98px){
  .cc-offer-inner{ padding: 4px 12px; min-height: 24px; gap: 6px; }
  .cc-offer-text{ font-size: 12px; line-height: 1.2; }
  .cc-offer-extra{ display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .cc-offer-dot{ animation: none; }
}

/* Hide any theme's default hero chips (we render our own) */
body.front-page .hero-section nav.tour-categories,
body.home .hero-section nav.tour-categories {
  display: none !important;
}

/* ---------- HERO (desktop base) ---------- */
.home-hero { padding: 10px 0; margin-bottom: clamp(16px, 3vw, 32px); }
.home-hero .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.home-hero .hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;   /* text | video */
  gap: 24px;
  align-items: center;
}

.home-hero .hero-copy{ display: block; min-width: 0; }
.home-hero .hero-eyebrow{
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.home-hero .hero-title{
  margin: 0 0 8px 0;
  font-weight: 900;
  color: var(--brand-text, #0f1f2a);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
}
.home-hero .hero-sub{
  color: #475569;
  margin: 8px 0 14px;
  font-size: clamp(14px, 1.2vw, 16px);
}
.home-hero .hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.home-hero .hero-actions .btn-primary{
  background: var(--brand-primary, #213f52);
  border: 1px solid var(--brand-primary, #213f52);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.home-hero .hero-actions .btn-primary:hover{ background: var(--brand-primary-600, #1b3143); }

/* Video wrapper */
.home-hero .hero-media .video-wrapper{
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.home-hero .hero-media video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Hide native overlay controls (best effort) */
.home-hero .hero-media video::-webkit-media-controls,
.home-hero .hero-media video::-webkit-media-controls-enclosure,
.home-hero .hero-media video::-webkit-media-controls-overlay-play-button,
.home-hero .hero-media video::-webkit-media-controls-start-playback-button { display: none !important; }

/* ---------- HERO (mobile/tablet) ---------- */
@media (max-width: 991.98px){
  .home-hero .container { padding: 0 10px; }

  /* Keep side-by-side; video bigger; prevent wrapping layout issues */
  .home-hero .hero-grid{
    display: grid !important;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr) !important; /* ~30% | 70% */
    gap: 8px !important;
    align-items: center !important; /* vertical center */
  }

  /* Only title on mobile */
  .home-hero .hero-eyebrow,
  .home-hero .hero-sub,
  .home-hero .hero-actions{ display: none !important; }

  .home-hero .hero-copy,
  .home-hero .hero-media{ min-width: 0 !important; }

  /* Compact, clean, 2-line title */
  .home-hero .hero-title{
    margin: 0 !important;
    font-weight: 800;
    font-size: clamp(12px, 3.2vw, 15px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0;
    max-width: 15ch !important;     /* ~2 neat lines */
    text-wrap: balance;
    white-space: normal !important;
    word-break: normal;
    hyphens: none;
  }
  /* Allow breaking the first phrase on small screens if needed */
  .home-hero .hero-title .no-break{ white-space: normal !important; }

  .home-hero .hero-media .video-wrapper{
    border-radius: 12px !important;
    aspect-ratio: 16/9 !important;
    height: auto !important;
  }
}

/* Ultra small devices: give video even more room and shrink title a bit */
@media (max-width: 360px){
  .home-hero .hero-grid{
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr) !important; /* ~25% | 75% */
    gap: 6px !important;
  }
  .home-hero .hero-title{
    font-size: clamp(11.5px, 3vw, 14px) !important;
    max-width: 14ch !important;
  }
}

/* ---------- Minor helpers ---------- */
#home-chips { margin-top: clamp(8px, 2vw, 18px); }

.filters-bar.is-minimal{
  display: flex; align-items: center; gap: 10px;
  padding: 6px 2px; color: #64748b; font-size: 14px;
}

/* Keep tours grid stable after AJAX (consistent columns) */
#tour-grid.cc-grid-fixed,
#tours-archive-grid.cc-grid-fixed,
.tours-grid.cc-grid-fixed { display: grid !important; gap: 24px !important; align-items: stretch !important; }
@media (min-width: 1200px) {
  #tour-grid.cc-grid-fixed, #tours-archive-grid.cc-grid-fixed, .tours-grid.cc-grid-fixed { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  #tour-grid.cc-grid-fixed, #tours-archive-grid.cc-grid-fixed, .tours-grid.cc-grid-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  #tour-grid.cc-grid-fixed, #tours-archive-grid.cc-grid-fixed, .tours-grid.cc-grid-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Load More (transparent pill, thin outline, compact, auto-width) */
.load-more-container{
  text-align: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

#load-more-tours.btn-view-details{
  appearance: none; -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 16px;
  min-height: 36px;
  width: fit-content;
  max-width: 100%;
  white-space: nowrap;

  background: transparent;
  color: var(--brand-text);
  border: 1px solid rgba(15,23,42,0.18);
  border-radius: 12px;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;

  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .02s ease;
}

#load-more-tours.btn-view-details:hover{
  background: rgba(2,6,23,0.03);
  border-color: rgba(15,23,42,0.28);
}

#load-more-tours.btn-view-details:focus-visible{
  outline: 3px solid var(--brand-primary-50);
  outline-offset: 2px;
}

#load-more-tours.btn-view-details:active{
  transform: translateY(1px);
}

#load-more-tours.btn-view-details[disabled],
#load-more-tours.btn-view-details.is-loading{
  opacity: .65;
  cursor: not-allowed;
}

/* XS phones even tighter */
@media (max-width: 480px){
  #load-more-tours.btn-view-details{
    padding: 7px 14px;
    min-height: 34px;
    font-size: 13px;
  }
}

/* ===== Tour Calendar (Home) ===== */
.cc-cal-section { margin: 16px 0 0; }
.cc-cal-section .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.cc-cal-section .cal-top{
  display:flex; align-items:center; justify-content:space-between; margin-bottom: 10px;
}
.cc-cal-section .cal-top .h2{ margin:0; font-weight:900; color: var(--brand-text); font-size: 28px; }
.cc-cal-section .btn-sm{ padding: 10px 14px; border-radius: 10px; font-size: 14px; }

.cc-cal-section .cal-toolbar{
  display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom: 12px;
}
.cc-cal-section .month-nav{ display:flex; align-items:center; gap:8px; }
.cc-cal-section .cal-nav{
  width:32px; height:32px; border-radius: 8px;
  border:1px solid var(--brand-border); background:#fff; color:var(--brand-text);
  font-weight:900; cursor:pointer;
}
.cc-cal-section .month-nav select{
  height:34px; border-radius:8px; border:1px solid var(--brand-border);
  background:#fff; color:var(--brand-text); padding: 6px 10px; font-weight:800;
}

.cc-cal-section .cal-body{ display:grid; grid-template-columns: 1.5fr 1fr; gap:16px; }

.cc-cal-head{
  display:grid; grid-template-columns: repeat(7, 1fr);
  background:#fff; border:1px solid var(--brand-border); border-bottom:0;
  padding:10px 8px; border-top-left-radius:12px; border-top-right-radius:12px;
  text-align:center; color:#64748b; font-weight:800; font-size:12px;
}
.cc-cal-grid{
  display:grid; grid-template-columns: repeat(7, 1fr);
  background:#fff; border:1px solid var(--brand-border); border-top:0;
  border-bottom-left-radius:12px; border-bottom-right-radius:12px;
}
.cc-day{
  min-height:110px; padding:8px; border-top:1px solid var(--brand-border);
  border-right:1px solid var(--brand-border);
  display:flex; flex-direction:column; gap:6px;
}
.cc-day:nth-child(7n){ border-right:0; }
.cc-day-head{ font-weight:800; color:#0f172a; font-size:12px; line-height:1; }
.cc-day.is-out .cc-day-head{ color:#94a3b8; }
.cc-day.is-today .cc-day-head{ color: var(--brand-primary); }
.cc-day-events{ display:flex; flex-direction:column; gap:6px; }

.cc-evt{
  display:inline-flex; align-items:center; max-width:100%;
  padding:6px 10px; border-radius:8px;
  background: var(--chip-bg); color: var(--chip-text);
  border: 1px solid var(--chip-border); text-decoration:none;
  font-size:12px; font-weight:800; line-height:1.1;
}
.cc-evt.more{ background: transparent; border: 0; color:#64748b; padding:0; cursor: default; }

/* Color tags per category slug (tweak as needed) */
.cc-evt.cat-adventure, .cc-evt.cat-adventure-tour{
  background:#ffedd5; border-color:#fed7aa; color:#9a3412;
}
.cc-evt.cat-weekend, .cc-evt.cat-weekend-getaway, .cc-evt.cat-weekend-trips{
  background:#dcfce7; border-color:#bbf7d0; color:#166534;
}
.cc-evt.cat-beach, .cc-evt.cat-beach-trp, .cc-evt.cat-beach-trip{
  background:#dbeafe; border-color:#bfdbfe; color:#1e40af;
}

/* Right pane */
.cal-right{
  background:#fff; border:1px solid var(--brand-border);
  border-radius:12px; padding:12px;
}
.cal-right .h3{ margin:4px 0 10px; font-size:18px; font-weight:900; color: var(--brand-text); }
.cc-next-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.next-link{
  display:grid; grid-template-columns: 44px 1fr auto; gap:10px; align-items:center;
  text-decoration:none; color: var(--brand-text); padding:8px; border-radius:10px;
}
.next-link:hover{ background:#f8fafc; }
.next-link .thumb img{
  width:44px; height:44px; border-radius:8px; object-fit:cover;
  border:1px solid var(--brand-border); background:#f8fafc;
}
.next-link .meta .line1{ display:block; font-weight:800; color:#0f172a; }
.next-link .meta .line2{ display:block; color:#64748b; font-size:12px; }
.next-link .price{ font-weight:900; color: var(--brand-primary); }

/* Loading state */
#tour-calendar.is-loading .cc-cal-grid,
#tour-calendar.is-loading .cc-next-list{ opacity:.6; pointer-events:none; }

/* Responsive */
@media (max-width: 991px){
  .cc-cal-section .cal-body{ grid-template-columns: 1fr; }
}