/* =========================================================
   BV Activities Archive (Filters + Cards + Grid/List)
   SELF-CONTAINED (includes card UI styles)
   Scoped to this page only: .bv-act-mainWrap / .bv-act-filterWrap
   ========================================================= */

/* ---------------------------
   Global scope + typography
--------------------------- */
.bv-act-mainWrap,
.bv-act-filterWrap{
  font-family:Poppins,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight:400;
  color:#0f172a;
}

.bv-act-mainWrap a{ text-decoration:none; }
.bv-act-mainWrap *{ box-sizing:border-box; }

/* ---------------------------
   Filters Sidebar
--------------------------- */
.bv-act-filterWrap{ position:relative; }

.bv-act-sidebar{
  border:1px solid #E8E8E8;
  border-radius:16px;
  background:#fff;
  padding:16px;
}

.bv-act-box{ margin:0 0 16px; }
.bv-act-box--head{ padding-bottom:12px; border-bottom:1px solid #eee; margin-bottom:16px; }

.bv-act-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bv-act-title{ font-weight:600; font-size:18px; line-height:1.2; }
.bv-act-clear{ color:#1D7F5F; font-weight:600; font-size:13px; }

.bv-act-subtitle{ font-weight:600; font-size:16px; line-height:1.2; margin:0 0 10px; }

.bv-act-field{ margin:12px 0 0; }
.bv-act-field label{
  display:block;
  font-size:13px;
  color:#667085;
  margin:0 0 6px;
  font-weight:500;
}

.bv-act-field select,
.bv-act-field input[type="number"]{
  width:100%;
  height:44px;
  border:1px solid #E8E8E8;
  border-radius:12px;
  padding:0 12px;
  background:#fff;
  font-weight:400;
  outline:none;
}

.bv-act-field select:focus,
.bv-act-field input[type="number"]:focus{
  border-color:#1D7F5F;
  box-shadow:0 0 0 3px rgba(29,127,95,.12);
}

.bv-act-apply{
  width:100%;
  height:46px;
  border:none;
  border-radius:12px;
  background:#1D7F5F;
  color:#fff;
  font-weight:600;
  cursor:pointer;
  margin-top:16px;
}

/* ---------------------------
   Output Topbar
--------------------------- */
.bv-act-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid #E8E8E8;
  border-radius:16px;
  background:#fff;
  margin-bottom:16px;
}

.bv-act-count{ font-weight:600; font-size:14px; }

.bv-act-actions{ display:flex; align-items:center; gap:12px; }

.bv-act-sortWrap{ display:flex; align-items:center; gap:10px; font-size:14px; color:#344054; }
.bv-act-sort{
  border:1px solid #E8E8E8;
  border-radius:10px;
  padding:8px 10px;
  background:#fff;
  font-weight:400;
}

.bv-act-viewBtns{ display:flex; gap:10px; }
.bv-act-viewBtn{
  width:38px; height:38px;
  border:1px solid #E8E8E8;
  border-radius:10px;
  background:#fff;
  display:grid;
  place-items:center;
}
.bv-act-viewBtn i{ color:#111827; font-size:15px; }
.bv-act-viewBtn.is-active{ border-color:#1D7F5F; }

/* =========================================================
   CARD UI (this is what was missing on your screenshot)
   Scoped only inside .bv-act-results
   ========================================================= */

.bv-act-results{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

/* Card shell */
.bv-act-results .bv-card{
  background:#fff;
  border:1px solid #E8E8E8;
  border-radius:18px;
  overflow:hidden;
  position:relative;
}

/* Image area */
.bv-act-results .bv-imgwrap{
  display:block;
  position:relative;
  padding:14px 14px 0;
}

.bv-act-results .bv-img{
  width:100%;
  height:210px;
  border-radius:14px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Badges */
.bv-act-results .bv-badge{
  position:absolute;
  top:24px;
  z-index:2;
  font-size:12px;
  font-weight:600;
  padding:6px 10px;
  border-radius:999px;
  line-height:1;
}

.bv-act-results .bv-badge--sale{
  left:24px;
  background:#ff4d4f;
  color:#fff;
}

.bv-act-results .bv-badge--topic{
  right:24px;
  background:#ffd56a;
  color:#1f2937;
}

/* Body */
.bv-act-results .bv-body{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* Title */
.bv-act-results .bv-title{
  margin:0;
  font-size:18px;
  line-height:1.25;
  font-weight:600;
}
.bv-act-results .bv-title a{
  color:#0b1220 !important;
  text-decoration:none !important;
}

/* Meta */
.bv-act-results .bv-meta{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#344054;
  font-weight:400;
}
.bv-act-results .bv-meta i{ color:#111827; }
.bv-act-results .bv-link{ color:#111827; font-weight:500; }
.bv-act-results .bv-sep{
  width:1px;
  height:12px;
  background:#d0d5dd;
  display:inline-block;
}

/* ✅ GRID: spacing after city/destination */
.bv-act-results.is-grid .bv-meta{ margin-bottom:10px; }

/* CTA row */
.bv-act-results .bv-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:2px;
}

.bv-act-results .bv-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  background:#1D7F5F;
  color:#fff !important;
  font-weight:600;
  font-size:13px;
  white-space:nowrap;
}

.bv-act-results .bv-price{
  text-align:right;
  line-height:1.1;
}

.bv-act-results .bv-from{
  display:block;
  font-size:12px;
  color:#667085;
  font-weight:500;
  margin-bottom:4px;
}

.bv-act-results .bv-line{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  gap:8px;
}

.bv-act-results .bv-old{
  color:#98a2b3;
  font-size:12px;
  text-decoration:line-through;
  font-weight:500;
}
.bv-act-results .bv-new{
  color:#0b1220;
  font-size:15px;
  font-weight:700;
}

/* Icons row */
.bv-act-results .bv-icons{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:6px;
}

/* Pills */
.bv-act-results .bv-pill{
  border:none;
  background:transparent;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  color:#111827;
  font-weight:500;
  cursor:pointer;
}

.bv-act-results .bv-pill i{
  width:18px;
  height:18px;
  display:inline-grid;
  place-items:center;
  border:1px solid #d0d5dd;
  border-radius:999px;
  font-size:11px;
  color:#111827;
}

/* ---------------------------------------------------------
   Tooltip (shows on hover) - not clipped
--------------------------------------------------------- */
.bv-act-results .bv-card{ overflow:visible; } /* allow tooltip outside */
.bv-act-results .bv-tip{
  position:absolute;
  z-index:99999;
  max-width:340px;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.35;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  pointer-events:none;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .15s ease, transform .15s ease;
}
.bv-act-results .bv-tip.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* =========================================================
   LIST MODE
   Make content not top-aligned; push CTA + icons to bottom
   and keep meta spacing
   ========================================================= */
.bv-act-results.is-list{
  grid-template-columns:1fr;
}

.bv-act-results.is-list .bv-card{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:16px;
  align-items:stretch;
  padding:14px;
}

.bv-act-results.is-list .bv-imgwrap{
  padding:0;
}
.bv-act-results.is-list .bv-img{
  height:260px;
  border-radius:16px;
}

/* content column should fill height */
.bv-act-results.is-list .bv-body{
  padding:6px 6px 6px 0;
  height:100%;
  display:flex;
  flex-direction:column;
}

/* ✅ LIST: spacing after meta */
.bv-act-results.is-list .bv-meta{ margin-bottom:14px; }

/* ✅ LIST: move CTA + icons to bottom */
.bv-act-results.is-list .bv-cta{ margin-top:auto; }
.bv-act-results.is-list .bv-icons{ margin-top:10px; }

/* Tooltip for Experience / Inclusion */
.bv-act-results .bv-card{ position:relative; overflow:visible; }

.bv-act-results .bv-tip{
  position:absolute;
  z-index:99999;
  max-width:340px;
  background:#111;
  color:#fff;
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.35;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  pointer-events:none;
  opacity:0;
  transform:translateY(-4px);
  transition:opacity .15s ease, transform .15s ease;
}

.bv-act-results .bv-tip.is-visible{
  opacity:1;
  transform:translateY(0);
}


/* ---------------------------
   Pagination
--------------------------- */
.bv-act-pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  margin:26px 0 0;
}

.bv-act-pagination a,
.bv-act-pagination span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  padding:6px 12px;
  border:1px solid #DDD;
  border-radius:8px;
  background:#fff;
  color:#111;
}
.bv-act-pagination .current{
  background:#1D7F5F;
  color:#fff;
  border-color:#1D7F5F;
}

/* ---------------------------
   Responsive
--------------------------- */
@media (max-width:1024px){
  .bv-act-results{ grid-template-columns:1fr; }
  .bv-act-results.is-list .bv-card{ grid-template-columns:1fr; }
  .bv-act-results.is-list .bv-img{ height:220px; }
}

/* ---------------------------
   Mobile filter drawer
--------------------------- */
.bv-act-filterBtn{
  display:none;
  height:44px;
  border:1px solid #E8E8E8;
  border-radius:12px;
  background:#fff;
  padding:0 14px;
  font-weight:600;
  cursor:pointer;
  align-items:center;
  gap:10px;
  margin-bottom:12px;
}

.bv-act-filterOverlay{ display:none; }

@media (max-width:880px){
  .bv-act-filterBtn{ display:inline-flex; }

  .bv-act-sidebar{
    position:fixed;
    z-index:9999;
    top:0;
    left:-110%;
    width:min(92vw,360px);
    height:100vh;
    overflow:auto;
    background:#fff;
    padding:14px;
    transition:left .25s ease;
    border-right:1px solid #E8E8E8;
  }

  body.bv-act-filter-open .bv-act-sidebar{ left:0; }

  .bv-act-filterOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:9998;
  }
  body.bv-act-filter-open .bv-act-filterOverlay{ display:block; }
}

@media (max-width: 480px) and (orientation: portrait){
	
	 .bv-act-filterBtn{
    width: 100%;
    display: flex;
		 justify-content: center;
	}

  /* Topbar: force 2-row layout */
  .bv-act-topbar{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* Row 1: Count full width */
  .bv-act-count{
    width: 100%;
    order: 1;
    white-space: nowrap;
  }

  /* Row 2: Actions full width */
  .bv-act-actions{
    width: 100%;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
  }

  /* Keep "Sort By" + dropdown together on left */
  .bv-act-sortWrap{
    width: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  /* Icons stay on right */
  .bv-act-viewBtns{
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
  }
}

