/* ==========================================================================
   section_layouts.css — Modular Section Layout Engine for LandingPageCMS
   100% Theme-Compatible: Uses CSS Variables strictly (Light / Dark / Glass)
   ========================================================================== */

/* ── 1. ABOUT US: ASYMMETRIC 3-PHOTO COLLAGE MOSAIC ──────────────────────── */
.about-mosaic-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-mosaic-visual {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.mosaic-tall {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  background: var(--bg2);
}

.mosaic-tall img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  max-height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mosaic-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mosaic-top,
.mosaic-bot {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 212px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  border: 1px solid var(--border);
  background: var(--bg2);
}

.mosaic-top img,
.mosaic-bot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mosaic-tall:hover img,
.mosaic-top:hover img,
.mosaic-bot:hover img {
  transform: scale(1.06);
}

.about-trust-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 22px 0 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.about-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb, 99, 102, 241), 0.16);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.about-trust-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  line-height: 1.3;
}

.about-trust-desc {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  line-height: 1.35;
}

@media (max-width: 991px) {
  .about-mosaic-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .mosaic-tall img {
    min-height: 320px;
  }
}

@media (max-width: 580px) {
  .about-mosaic-visual {
    grid-template-columns: 1fr;
  }
  .mosaic-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .mosaic-top,
  .mosaic-bot {
    height: 150px;
  }
}


/* ── 2. SERVICES: MODERN CAROUSEL SLIDER ──────────────────────────────────── */
.svc-carousel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}

.svc-carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border-color: var(--primary);
}

.svc-carousel-card-img {
  height: 185px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}

.svc-carousel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.svc-carousel-card:hover .svc-carousel-card-img img {
  transform: scale(1.08);
}

.svc-carousel-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-carousel-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.svc-carousel-card-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.svc-carousel-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* 3 visible cards per view on desktop, 2 on tablet, 1 on mobile */
.svc-carousel-track .svc-carousel-item {
  flex: 0 0 calc(33.333% - 16px) !important;
  width: calc(33.333% - 16px) !important;
  min-width: 280px !important;
  max-width: 420px !important;
  margin-right: 0 !important;
  scroll-snap-align: start;
  box-sizing: border-box !important;
}

@media (max-width: 991px) and (min-width: 641px) {
  .svc-carousel-track .svc-carousel-item {
    flex: 0 0 calc(50% - 12px) !important;
    width: calc(50% - 12px) !important;
    min-width: 260px !important;
  }
}

@media (max-width: 640px) {
  .svc-carousel-track .svc-carousel-item {
    flex: 0 0 86% !important;
    width: 86% !important;
    min-width: 240px !important;
  }
}



/* ── 3. CITIES / DESTINATIONS: FLOATING PILL-BADGE CARDS ─────────────────── */
.city-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.city-badge-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.city-badge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.city-badge-media {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--bg2);
}

.city-badge-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.city-badge-card:hover .city-badge-media img {
  transform: scale(1.08);
}

.city-badge-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.city-badge-footer {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
}

.city-badge-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 3px 0;
  line-height: 1.25;
}

.city-badge-state {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

.city-badge-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.city-badge-card:hover .city-badge-arrow {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateX(4px);
}


/* ── 4. FLEET / OFFERINGS: SIDE-HEADER POSTER SLIDER ─────────────────────── */
.side-slider-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(28px, 4vw, 42px);
  align-items: center;
}

.side-slider-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.side-slider-navs {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.side-slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.side-slider-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.08);
}

.side-slider-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.side-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.side-slider-track::-webkit-scrollbar {
  display: none;
}

.side-poster-card {
  flex: 0 0 280px;
  height: 390px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: block;
  background: var(--bg2);
}

.side-poster-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  border-color: var(--primary);
}

.side-poster-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.side-poster-card:hover .side-poster-bg {
  transform: scale(1.08);
}

.side-poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0) 35%, rgba(3, 7, 18, 0.7) 70%, rgba(3, 7, 18, 0.96) 100%);
  z-index: 1;
}

.side-poster-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  z-index: 2;
}

.side-poster-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 8px 0;
  line-height: 1.3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.side-poster-link {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--accent, #38BDF8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  transition: gap 0.2s ease;
}

.side-poster-card:hover .side-poster-link {
  gap: 10px;
}

@media (max-width: 991px) {
  .side-slider-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
