/* ============================================================
   BHOOMIVISTA DESIGN SYSTEM — COMPONENTS v7.1
   ------------------------------------------------------------
   Purpose:
     Central component layer for BhoomiVista’s UI structure.
     Defines reusable interactive parts such as headers, footers,
     buttons, popups, and cards — built atop core.css & utilities.css.

   Features:
     • Responsive header & navigation (desktop / mobile)
     • Global footer with consistent tone
     • Button variants (solid, outline, minimal, round)
     • Popup/modal styling
     • Card and content blocks
     • Accessibility and motion safety
     • iOS/Android touch-friendly sizing

   Structure:
     [1] Header & Navigation
     [2] Footer
     [3] Buttons
     [4] Popups / Modals
     [5] Cards / Panels
     [6] Responsive Behavior
     [7] Accessibility Enhancements
   ============================================================ */


/* ============================================================
   [1] HEADER & NAVIGATION
   ============================================================ */

.bv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(180,95,75,0.15);
  transition: background var(--motion-medium), box-shadow var(--motion-medium), padding var(--motion-medium);
}

.bv-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Logo */
.bv-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--spark-base);
  text-decoration: none;
  transition: color var(--motion-fast), text-shadow var(--motion-fast);
}
.bv-logo:hover {
  color: var(--brand-highlight);
  text-shadow: 0 0 10px rgba(180,95,75,0.4);
}

/* Navigation links */
.bv-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.bv-nav a {
  position: relative;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--spark-base), var(--brand-highlight), var(--spark-base));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientFlowSoft 12s ease-in-out infinite;
  transition: color var(--motion-fast), transform var(--motion-fast);
}
@media (hover: hover) {
  .bv-nav a:hover {
    transform: translateY(-2px);
    -webkit-text-fill-color: var(--spark-base);
    animation-play-state: paused;
  }
}
.bv-nav .active,
.bv-nav .current-menu-item a {
  font-weight: 700;
  -webkit-text-fill-color: var(--spark-base);
  border-bottom: 2px solid var(--spark-base);
  animation-play-state: paused;
}

/* WhatsApp icon */
.bv-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg,#25D366,#128C7E);
  margin-left: 1rem;
  box-shadow: 0 0 8px rgba(18,140,126,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) {
  .bv-whatsapp:hover {
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(18,140,126,0.6);
  }
}
.bv-whatsapp img {
  width: 18px;
  height: 18px;
  filter: brightness(110%);
}

/* Compact scroll state */
.bv-header.scroll-active {
  background: rgba(247,241,234,0.9);
  box-shadow: var(--shadow-medium);
  padding: 0.8rem 2rem;
}

/* Responsive nav */
@media (max-width: 900px) {
  .bv-header-inner {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.2rem;
  }
  .bv-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}


/* ============================================================
   [2] FOOTER
   ============================================================ */
.bv-footer {
  background: var(--brand-accent);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  font-family: var(--font-body);
}
.bv-footer a {
  color: #fff;
  text-decoration: none;
  transition: color var(--motion-fast);
}
@media (hover: hover) {
  .bv-footer a:hover { color: var(--brand-highlight); }
}
.bv-footer small {
  opacity: 0.8;
  font-size: 0.9rem;
}


/* ============================================================
  [2.1] [COMPONENT EXTENSION] BHOOMIVISTA HEADER — Glass / Motion v7.1
   ============================================================ */
.bv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 10px rgba(180,95,75,0.15);
  transition: background var(--motion-medium), box-shadow var(--motion-medium), padding var(--motion-medium);
}

.bv-header:hover {
  background: rgba(255,255,255,0.65);
  box-shadow: 0 4px 20px rgba(180,95,75,0.25);
}

.bv-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Compact scroll effect */
.bv-header.scroll-active {
  background: rgba(247,241,234,0.9);
  box-shadow: var(--shadow-medium);
  padding: 1rem 3rem;
  transition: background var(--motion-medium), box-shadow var(--motion-medium), padding var(--motion-medium);
}


/* ============================================================
   [3] BUTTONS - This section is moved to button.css as section 1.1 
   ============================================================ */


/* ============================================================
   [4] POPUPS / MODALS
   ============================================================ */

.bv-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.bv-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bv-popup {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  transform: translateY(30px);
  transition: transform .4s ease;
}
.bv-popup-overlay.active .bv-popup { transform: translateY(0); }
.bv-popup h3 {
  font-family: var(--font-heading);
  color: var(--brand-primary);
  margin-bottom: 1rem;
}
.bv-popup-close {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: 1.5rem;
  color: var(--brand-accent);
  cursor: pointer;
  transition: color .3s ease;
}
@media (hover: hover) {
  .bv-popup-close:hover { color: var(--brand-primary); }
}

/* ============================================================
   [5] CARDS / PANELS
   ============================================================ */
.bv-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.8rem;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}
@media (hover: hover) {
  .bv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
  }
}
.bv-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}
.bv-card h3 {
  font-family: var(--font-heading);
  color: var(--brand-accent);
  margin-bottom: .6rem;
}
.bv-card p {
  font-family: var(--font-body);
  color: var(--color-text-main);
  line-height: 1.7;
}

/* ============================================================
   [6] RESPONSIVE BEHAVIOR
   ============================================================ */
@media (max-width: 768px) {
  .bv-header-inner { padding: 1rem 1.5rem; }
  .bv-nav { flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
  .bv-card { padding: 1.4rem; }
  .bv-popup { padding: 1.5rem; }
  .bv-footer { padding: 40px 15px; }
}

/* ============================================================
   [7] ACCESSIBILITY ENHANCEMENTS
   ============================================================ */
.bv-btn:focus-visible,
.bv-popup-close:focus-visible,
.bv-nav a:focus-visible {
  outline: var(--a11y-focus-outline);
  outline-offset: var(--a11y-focus-offset);
}

@media (prefers-reduced-motion: reduce) {
  .bv-header,
  .bv-card,
  .bv-popup,
  .bv-nav a {
    transition: none !important;
  }
}

/* ============================================================
   [8] [COMPONENT EXTENSION] SURFACES & PANELS v7.1
   ------------------------------------------------------------
   Purpose:
     Neutral containers used for balanced layouts, info boxes,
     or feature highlights (non-thematic).
   ============================================================ */

.bv-box,
.bv-panel {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 2rem;
  color: var(--color-text-main);
  transition: box-shadow var(--motion-fast), transform var(--motion-fast);
}

@media (hover: hover) {
  .bv-box:hover,
  .bv-panel:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
  }
}

.bv-panel-dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

/* ============================================================
   [9] [COMPONENT EXTENSION] STEP BADGE v7.1
   ------------------------------------------------------------
   Purpose:
     Small circular numeric badges or status indicators.
     Used in process steps, highlights, or feature lists.
   ============================================================ */

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-highlight);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

@media (hover: hover) {
  .step-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
  }
}

.step-badge.dark {
  background: var(--brand-primary);
}


/* ============================================================
   [10] BV-TABS SYSTEM — v7.4 unified (final)
   ------------------------------------------------------------
   Purpose:
     Defines visual layout and animation of BhoomiVista tabs.
   Core idea:
     • Titles and panels are managed by JS (bv-tabs.js or bridge).
     • Only one panel is visible at a time.
   Dependencies:
     - bv-tabs.js                → native BhoomiVista tabs
     - bv-tabs-wpte-bridge.js    → enables same behaviour for WPTE trips
   Important Notes:
     1. Tab titles can be <button> or <p> elements.
        Always assign data-panel="xyz" matching the panel ID.
     2. Panels are hidden by default:
           display:none; opacity:0;
        JS adds either `.is-active` or `[hidden=false]` to show them.
     3. Do not remove compatibility rule:
           .bv-tab-panels [data-panel]:not([hidden]) { ... }
        It keeps WPTE bridge and native tabs consistent.
     4. Paragraphs inside `.bv-tab-titles` must have margin reset:
           margin:0 !important;
   ============================================================ */


/* --- Tab Title Row --- */
.bv-tab-titles {
  display: flex;
  justify-content: center;
  align-items: center;            /* vertical alignment fix */
  flex-wrap: wrap;
  gap: 2rem;                      /* balanced spacing between titles */
  margin: 1.5rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 0.75rem;
}

/* --- Individual Title Buttons --- */
.bv-tab-title {
  display: inline-flex;            /* normalize <p>/<button> alignment */
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.2;
  background: none;
  border: none;
  color: var(--color-text-main);
  cursor: pointer;
  position: relative;
  padding: 0.5rem 1rem;
  transition: color var(--motion-fast), transform var(--motion-fast);
}

.bv-tab-title:hover {
  color: var(--brand-primary);
  transform: translateY(-2px);
}

/* --- Active State --- */
.bv-tab-title.is-active {
  color: var(--brand-highlight);
  font-weight: 600;
}

.bv-tab-title.is-active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-highlight);
  border-radius: 2px;
}

/* --- Panels Wrapper --- */
.bv-tab-panels {
  margin-top: 2rem;
  width: 100%;
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
}

/* --- Each Panel --- */
.bv-tab-panel {
  display: none;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  transform: translateY(8px);
}

/* --- Active Panel --- */
.bv-tab-panel.is-active {
  display: block;
  opacity: 1;
  transform: none;
  animation: tabFade var(--motion-medium) ease forwards;
}

/* --- Ready State (added by JS) --- */
.bv-tab-panels.js-ready [data-panel] {
  transition: opacity .3s ease;
}

/* --- Compatibility for bridge JS (uses [hidden]) --- */
.bv-tab-panels [data-panel]:not([hidden]) {
  display: block;
  opacity: 1;
  transform: none;
  animation: tabFade var(--motion-medium) ease forwards;
}

/* --- Animation --- */
@keyframes tabFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --- Reset default paragraph margins inside tab titles --- */
.bv-tab-titles p.bv-tab-title {
  margin: 0 !important;
  line-height: 1.2;
}



/* --- Mobile optimization for BV Tabs --- */
@media (max-width: 768px) {
  .bv-tab-titles {
    flex-wrap: nowrap;              /* keep all in one line */
    overflow-x: auto;               /* allow horizontal scroll */
    justify-content: flex-start;    /* left align for natural swipe */
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .bv-tab-title {
    flex: 0 0 auto;                 /* prevent shrinking */
    scroll-snap-align: center;
    white-space: nowrap;
    border-radius: 1.5rem;
  }
}



/* ============================================================
   11 Destination Slider (FULL-WIDTH + CENTER-COVERFLOW)
   ============================================================ */

/* ============================================================
   OVERRIDE BV-BRIDGE PANEL FOR DESTINATION SLIDER
   ============================================================ */

.bv-tabs--regions .bv-tab-panel {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin-inline: 0 !important;
}

/* Full-bleed section wrapper under hero */
.bv-tabs--regions {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important; /* full-bleed */
  margin-right: 0 !important;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0
           calc(clamp(1.5rem, 3vw, 2.5rem) + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* Remove unwanted background from WP groups inside */
.bv-tabs--regions .wp-block-group {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Tab titles */
.bv-tabs--regions .bv-tab-titles {
  justify-content: center;
  margin-bottom: var(--space-lg, 2rem);
}

/* ============================================================
   SWIPER CONTAINER — FULL WIDTH
   ============================================================ */
.bv-destination-swiper {
  width: 100%;
  padding-inline: clamp(0.75rem, 2vw, 1.75rem); /* small gutter only */
  padding-bottom: 2.5rem;
  box-sizing: border-box;
  position: relative;
}

/* ============================================================
   SLIDE WIDTH / DEPTH
   ============================================================ */
.bv-destination-slide {
  width: 52vw;          /* center big, sides smaller */
  max-width: 500px;
  transition:
    transform 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.28),
    opacity 0.45s ease,
    filter 0.35s ease;
  will-change: transform, opacity, filter;
  opacity: 0.25;
  transform: scale(0.72);
}

/* Visible slides (not center) – medium */
.bv-destination-slide.swiper-slide-visible {
  opacity: 0.6;
  transform: scale(0.84);
}

/* Active (center) slide – hero */
.bv-destination-slide.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

/* Card container */
.bv-destination-card {
  position: relative;
  display: block;
  height: 52vh;
  min-height: 320px;
  max-height: 540px;
  border-radius: var(--radius-2xl, 28px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Background image */
.bv-destination-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  filter: brightness(0.85);
  transition: filter 0.35s ease, transform 0.45s ease;
}

/* Center slide image brighter */
.bv-destination-slide.swiper-slide-active .bv-destination-card-bg {
  filter: brightness(1.05);
}

.bv-destination-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.05) 70%,
    transparent
  );
  pointer-events: none;
}

.bv-destination-card {
  position: relative;
  box-shadow:
    0 0 0 3px rgba(var(--spark-rgb, 255, 111, 60), 0.10),
    0 0 32px rgba(var(--spark-rgb, 255, 111, 60), 0.15);
}
.swiper-slide-active .bv-destination-card {
  box-shadow:
    0 0 0 4px rgba(var(--spark-rgb, 255, 111, 60), 0.20),
    0 0 48px rgba(var(--spark-rgb, 255, 111, 60), 0.25);
}


/* TEXT CONTENT */
.bv-destination-card-content {
  position: absolute;
  inset-inline: clamp(1.25rem, 4vw, 2rem);
  bottom: clamp(1.6rem, 3vw, 2.3rem);
  color: #fff;
  text-align: left;
  will-change: opacity, transform;
  opacity: 1 !important; /* avoid delayed text */
}


/* PREMIUM REFINED TITLE — subtle but still strong */
.bv-destination-title {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 8px 18px;

  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.5px;

  /* Slightly softer dark (NOT full black) */
  background: rgba(0, 0, 0, 0.55); /* was 0.80 */

  /* Rounded corners slightly softer */
  border-radius: 14px;

  /* Pure white text */
  color: #ffffff !important;

  /* Softer shadow */
  text-shadow: 
    0 2px 6px rgba(0,0,0,0.6);

  /* Slight warm glow (very subtle) */
  box-shadow:
    0 0 12px rgba(var(--spark-rgb,255,111,60), 0.15);
}


/* Title base */
.bv-destination-title {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  transition: background .25s ease, color .25s ease;
}

/* On center slide = more solid */
.swiper-slide-active .bv-destination-title {
  background: rgba(0, 0, 0, 0.75);
}

/* On hover = spark accent fill */
.swiper-slide-active .bv-destination-title:hover {
  background: color-mix(in srgb, var(--spark-base) 70%, #000 30%);
  color: #fff;
}



/* Excerpt */
.bv-destination-excerpt {
  margin: 0.35rem 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 32rem;
  opacity: 0.9;
}

/* ============================================================
   BhoomiVista Destination CTA Button (Spark → Light Transition)
   ============================================================ */

.bv-destination-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;

  /* Spark theme */
  background: var(--spark-base);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);

  /* Smooth premium shadow */
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: 
      background .25s ease,
      color .25s ease,
      box-shadow .25s ease,
      transform .25s ease;
}

/* Hover — Light Base + Lift */
.bv-destination-cta:hover {
  background: var(--light-base);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.30);
}

/* Active tap on mobile */
.bv-destination-cta:active {
  transform: translateY(-1px);
}


/* DESKTOP hover */
@media (hover: hover) and (pointer: fine) {
  .bv-destination-slide.swiper-slide-active .bv-destination-card:hover .bv-destination-card-bg {
    transform: scale(1.06);
  }
}

/* PAGINATION */
.bv-destination-swiper .swiper-pagination {
  position: static;
  margin-top: 0.75rem;
}

.bv-destination-swiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.bv-destination-swiper .swiper-pagination-bullet-active {
  background: var(--spark-base, #ff6f3c);
}

/* ============================================================
   ARROW NAV (CSS only; HTML + JS later)
   ============================================================ */

.bv-nav-prev,
.bv-nav-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-nav-prev {
  left: 1rem;
}

.bv-nav-next {
  right: 1rem;
}

/* simple arrow chevrons using pseudo-elements */
.bv-nav-prev::before,
.bv-nav-next::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-style: solid;
  border-width: 0 0 2px 2px;
  border-color: #fff;
  transform: rotate(45deg);
}

.bv-nav-next::before {
  transform: rotate(-135deg);
}

@media (hover: hover) and (pointer: fine) {
  .bv-nav-prev:hover,
  .bv-nav-next:hover {
    background: rgba(0, 0, 0, 0.65);
  }
}

/* ============================================================
   MOBILE TUNING
   ============================================================ */
@media (max-width: 767px) {
  .bv-destination-swiper {
    padding-inline: 0.75rem;
  }

  .bv-destination-slide {
    width: 78vw;   /* one main + ~10% on sides */
    max-width: 360px;
    transform: scale(0.9);
    opacity: 0.9;
  }

  .bv-destination-slide.swiper-slide-active {
    transform: scale(1);
    opacity: 1;
  }

  .bv-destination-card {
    height: 50vh;
    min-height: 280px;
  }

  .bv-destination-card-content {
    inset-inline: 1.1rem;
    bottom: 1.4rem;
  }

  .bv-destination-excerpt {
    max-width: 100%;
  }

  .bv-nav-prev,
  .bv-nav-next {
    display: none; /* arrows off on mobile; swipe only */
  }
}


/* ============================================================
   [12] DESTINATION GRIDS — BV DESTINATION SHORTCODES
   ============================================================ */

/* WRAPPER WIDTH CONTROL
   ------------------------------------------------------------ */
.bv-width-content {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 2rem);
}

.bv-width-wide {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2vw, 2rem);
}

.bv-width-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding-inline: clamp(1rem, 3vw, 3rem);
}


/* SPACING
   ------------------------------------------------------------ */
.bv-spacing-sm { row-gap: 1rem; }
.bv-spacing-md { row-gap: 1.75rem; }
.bv-spacing-lg { row-gap: 2.5rem; }


/* COLUMN CLASSES (GRID/MASONRY)
   ------------------------------------------------------------ */
.bv-cols-2 { --bv-cols: 2; }
.bv-cols-3 { --bv-cols: 3; }
.bv-cols-4 { --bv-cols: 4; }

@media (max-width: 768px) {
  .bv-cols-4, .bv-cols-3 {
    --bv-cols: 2;
  }
}
@media (max-width: 500px) {
  .bv-cols-4, .bv-cols-3, .bv-cols-2 {
    --bv-cols: 1;
  }
}


/* ============================================================
   GRID LAYOUT
   ============================================================ */
.bv-destinations-grid {
  display: grid;
  grid-template-columns: repeat(var(--bv-cols, 3), 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.bv-destination-grid-item {
  display: block;
}


/* ============================================================
   MASONRY LAYOUT — Pinterest style (CSS columns)
   ============================================================ */
.bv-destinations-masonry {
  column-count: var(--bv-cols, 3);
  column-gap: clamp(1rem, 2vw, 1.5rem);
}

.bv-destination-masonry-item {
  break-inside: avoid;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}


/* ============================================================
   LIST LAYOUT — Media Card (horizontal)
   ============================================================ */
.bv-destinations-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.bv-destination-list-item {
  display: flex;
  align-items: stretch;
}

.bv-destination-card--list {
  display: flex;
  gap: 1rem;
  width: 100%;
  min-height: 180px;
}

.bv-destination-card--list .bv-destination-card-media {
  width: 42%;
  min-height: 180px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.bv-destination-card--list .bv-destination-card-content {
  width: 58%;
  padding: clamp(1rem, 2vw, 1.5rem) 1rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 700px) {
  .bv-destination-card--list {
    flex-direction: column;
  }
  .bv-destination-card--list .bv-destination-card-media,
  .bv-destination-card--list .bv-destination-card-content {
    width: 100%;
  }
}


/* ============================================================
   SIMPLE TEXT LAYOUT
   ============================================================ */
.bv-destinations-simple {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.bv-destinations-simple-item {
  padding: 0.4rem 0;
}

.bv-destination-simple-link {
  color: var(--echo-base);
  font-weight: 600;
  text-decoration: none;
}

.bv-destination-simple-link:hover {
  text-decoration: underline;
}


/* ============================================================
   CARD SHARED BEHAVIOR (safe tweaks)
   ------------------------------------------------------------
   (These do NOT override slider behavior; they enhance grid/list.)
   ============================================================ */

/* ensure images fit when grid auto-adjusts */
.bv-destination-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  height: 100%;
}

/* maintain height for grids (not slider) */
.bv-destinations-grid .bv-destination-card,
.bv-destinations-masonry .bv-destination-card {
  min-height: 320px;
}

@media (max-width: 600px) {
  .bv-destinations-grid .bv-destination-card,
  .bv-destinations-masonry .bv-destination-card {
    min-height: 260px;
  }
}


/* ============================================================
   END OF FILE — components.css v7.1
   Next: themes/ → Spark, Light, Echo, Terra, Freedom
   ============================================================ */
