:root{
  --hv-accent:#0a66ff;
  --hv-nav-bg:rgba(0,0,0,.35);
  --hv-nav-ico:#ffffff;
}

/* ✅ Scroll lock used by JS */
body.hv-no-scroll{ overflow:hidden !important; }

.hv-wrap{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#111}
.hv-wrap img{max-width:100%;}

.hv-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px;overflow:visible !important}
.hv-actions{display:flex;gap:10px;align-items:center;overflow:visible !important}
.hv-title{font-size:28px;font-weight:800;line-height:1.1;margin:0}
.hv-sub{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:#444;font-size:14px;margin-top:8px}
.hv-pill{display:inline-flex;align-items:center;gap:6px}
.hv-link{color:var(--hv-accent);text-decoration:none;font-weight:600}
.hv-link:hover{text-decoration:underline}
.hv-ico{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ✅ Accessible focus */
.hv-wrap button:focus-visible,
.hv-wrap a:focus-visible{
  outline:3px solid var(--hv-accent);
  outline-offset:3px;
}

/* Badge wrapper button */
.hv-badge-btn{
  position:relative !important;
  border:0 !important;
  background:transparent !important;
  padding:0 !important;
  margin:0 !important;
  cursor:pointer;
  appearance:none !important;
  -webkit-appearance:none !important;
  box-shadow:none !important;
  line-height:normal !important;
}
.hv-badge-btn:hover,
.hv-badge-btn:focus,
.hv-badge-btn:active{
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
}

.hv-badge{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--hv-accent);font-weight:900;font-size:14px;
  padding:12px 18px;border:1px solid #e8eefc;border-radius:18px;background:#f6f9ff;
  white-space:nowrap;
}

/* Tooltip (desktop) */
.hv-tooltip{
  position:absolute !important;
  top:-14px !important;
  right:0 !important;
  transform:translateY(-100%) !important;
  width:min(380px,90vw) !important;
  background:#ffffff !important;
  color:#111111 !important;
  padding:18px !important;
  border-radius:18px !important;
  border:1px solid #e9e9e9 !important;
  box-shadow:0 20px 60px rgba(0,0,0,.18) !important;
  display:none;
  font-size:14px !important;
  line-height:1.6 !important;
  z-index:100000 !important;
  text-align:left !important;
  white-space:normal !important;
}
.hv-tooltip *{color:#111111 !important}
.hv-tooltip:after{
  content:"";
  position:absolute;
  right:20px;
  bottom:-8px;
  width:14px;height:14px;
  background:#fff;
  border-right:1px solid #e9e9e9;
  border-bottom:1px solid #e9e9e9;
  transform:rotate(45deg);
}
@media (min-width:641px){
  .hv-badge-btn:hover .hv-tooltip{display:block}
}

/* Badge modal (mobile) */
.hv-badge-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;z-index:980000;padding:18px}
.hv-badge-modal[aria-hidden="false"]{display:flex;align-items:flex-start;justify-content:center}
.hv-badge-modal-inner{width:min(520px,100%);background:#fff;border-radius:16px;box-shadow:0 20px 70px rgba(0,0,0,.35);overflow:hidden}
.hv-badge-modal-top{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #eee}
.hv-badge-modal-title{font-weight:900;font-size:18px;color:#2f6b2f}
.hv-badge-modal-close{width:38px;height:38px;border-radius:12px;border:1px solid #e6e6e6;background:#fff;cursor:pointer;font-size:22px;font-weight:900}
.hv-badge-modal-body{padding:14px 16px;font-size:16px;line-height:1.45}

/* Main layout */
.hv-main{display:grid;grid-template-columns: 2.2fr 1fr;gap:16px;align-items:start}

/* Desktop gallery */
.bk-grid{display:grid;grid-template-columns:2.2fr 1fr;gap:10px}
.bk-main,.bk-item,.bk-thumb{position:relative;border-radius:14px;overflow:hidden;cursor:pointer;background:#f3f3f3}
.bk-right{display:grid;grid-template-rows:1fr 1fr 1fr;gap:10px}
.bk-thumbs{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-top:10px}
.bk-main img,.bk-item img,.bk-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.bk-main:hover img,.bk-item:hover img,.bk-thumb:hover img{transform:scale(1.02)}
.bk-main{aspect-ratio: 1 / 1;}
.bk-item{aspect-ratio: 3 / 2;}
.bk-thumb{aspect-ratio: 3 / 2;}
.bk-more{position:absolute;right:12px;bottom:12px;background:rgba(0,0,0,.62);color:#fff;font-size:13px;font-weight:900;padding:8px 10px;border-radius:10px}

/* Sidebar cards (HV scoped, no theme conflicts) */
.hv-side{display:flex;flex-direction:column;gap:14px}
.hv-card{border:1px solid #e6e6e6;border-radius:16px;background:#fff;overflow:hidden}
.hv-card-pad{padding:14px}
.hv-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.hv-rating{display:flex;align-items:center;gap:10px}
.hv-rating strong{font-size:15px}
.hv-score{width:38px;height:38px;border-radius:10px;background:var(--hv-accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.hv-muted{color:#666;font-size:12px}
.hv-quote{margin:12px 0 0 0;color:#222;font-size:13px;line-height:1.4;background:#f7f7f7;border-radius:10px;padding:12px}
.hv-userrow{display:flex;gap:10px;align-items:center;margin-top:12px}
.hv-avatar{width:34px;height:34px;border-radius:999px;background:#7ac56b;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:14px}
.hv-name{font-weight:800;font-size:13px}
.hv-loc{font-size:12px;color:#666}
.hv-side-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid #eee;font-size:13px}
.hv-side-row:first-child{border-top:none}
.hv-side-row strong{font-weight:800}
.hv-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e6e6e6;border-radius:10px;padding:6px 10px;font-weight:900;background:#fff}

/* Map */
.hv-map-embed iframe{width:100%;height:220px;border:0;display:block}

/* Mobile slider */
.bk-m-slider{display:none}
.bk-m-viewport{position:relative;border-radius:16px;overflow:hidden;background:#f3f3f3;aspect-ratio: 16/10;}
.bk-m-track{display:flex;width:100%;height:100%;transform:translateX(0);transition:transform .25s ease;will-change:transform}
.bk-m-slide{min-width:100%;height:100%;cursor:pointer}
.bk-m-slide img{width:100%;height:100%;object-fit:cover;display:block}
.bk-m-nav{
  position:absolute;top:50%;transform:translateY(-50%);
  width:42px;height:42px;border-radius:999px;border:none;cursor:pointer;
  background:var(--hv-nav-bg);
  display:flex;align-items:center;justify-content:center;
}
.bk-m-nav svg{width:22px;height:22px;stroke:var(--hv-nav-ico);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bk-m-prev{left:max(10px, env(safe-area-inset-left))}
.bk-m-next{right:max(10px, env(safe-area-inset-right))}

/* dots */
.bk-m-dots{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:10px;padding:0 12px;max-width:100%}
.bk-m-dot{
  width:8px !important;height:8px !important;
  min-width:8px !important;min-height:8px !important;
  border-radius:999px !important;
  background:rgba(0,0,0,.18) !important;
  border:0 !important;padding:0 !important;margin:0 !important;
  appearance:none !important;-webkit-appearance:none !important;
  box-shadow:none !important;display:inline-block !important;
  flex:0 0 auto !important;cursor:pointer;
}
.bk-m-dot[aria-current="true"]{background:var(--hv-accent) !important;transform:scale(1.25)}
@media (max-width:420px){
  .bk-m-dot{width:7px !important;height:7px !important;min-width:7px !important;min-height:7px !important}
  .bk-m-dots{gap:8px}
}

/* Responsive */
@media (max-width: 1024px){ .hv-main{grid-template-columns:1fr} }
@media (max-width: 900px){
  .bk-grid{grid-template-columns:1fr}
  .bk-right{grid-template-columns:repeat(3,1fr);grid-template-rows:none}
}
@media (max-width: 640px){
  .hv-top{flex-direction:column;align-items:flex-start}
  .hv-title{font-size:22px}
  .bk-desktop{display:none}
  .bk-m-slider{display:block}
  .hv-side{margin-top:10px}
  .hv-tooltip{display:none !important}
}

/* LIGHTBOX overlay */
.bk-lightbox{position:fixed;inset:0;background:rgba(0,0,0,.88);display:none;align-items:center;justify-content:center;z-index:950000;padding:18px}
.bk-lightbox[aria-hidden="false"]{display:flex}
.bk-lb-inner{width:min(1100px,100%);height:min(82vh,700px);display:flex;align-items:center;justify-content:center;position:relative}
.bk-lb-img{max-width:100%;max-height:100%;border-radius:12px;box-shadow:0 10px 40px rgba(0,0,0,.45);user-select:none}
.bk-lb-top{position:fixed;top:14px;left:14px;right:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;z-index:960000;pointer-events:none}
.bk-lb-count{pointer-events:auto;color:#fff;font-weight:900;font-size:14px;background:rgba(0,0,0,.35);padding:8px 10px;border-radius:10px}
.bk-lb-close{pointer-events:auto;appearance:none;border:none;background:rgba(0,0,0,.35);color:#fff;width:40px;height:40px;border-radius:12px;cursor:pointer;font-size:22px;line-height:40px;text-align:center}
.bk-lb-close:hover{background:rgba(0,0,0,.5)}
.bk-lb-nav{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:999px;border:none;cursor:pointer;background:rgba(0,0,0,.35);color:#fff;display:flex;align-items:center;justify-content:center}
.bk-lb-nav:hover{background:rgba(0,0,0,.5)}
.bk-lb-prev{left:-8px}
.bk-lb-next{right:-8px}
.bk-lb-nav svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:600px){
  .bk-lb-prev{left:6px}.bk-lb-next{right:6px}
  .bk-lb-inner{height:min(78vh,620px)}
}

/* FULL GALLERY MODAL overlay */
.hv-gmodal{
  position:fixed;inset:0;background:rgba(0,0,0,.88);
  display:none;z-index:900000;
  padding:22px;
}
.hv-gmodal[aria-hidden="false"]{display:block}
.hv-gm-inner{
  width:min(1200px,100%);
  margin:0 auto;
  background:#fff;border-radius:14px;
  overflow:hidden;
  box-shadow:0 20px 70px rgba(0,0,0,.55);

  max-height: calc(100vh - 44px);
  display:flex;
  flex-direction:column;
}
.hv-gm-top{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-bottom:1px solid #eee;
}
.hv-gm-heading{font-weight:900;font-size:18px}
.hv-gm-actions{display:flex;gap:10px;align-items:center}
.hv-gm-btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:8px 12px;border-radius:10px;
  background:var(--hv-accent);color:#fff;text-decoration:none;font-weight:900;
}
.hv-gm-close{
  width:38px;height:38px;border-radius:10px;
  border:1px solid #e6e6e6;background:#fff;
  cursor:pointer;font-size:22px;line-height:36px;font-weight:900;
}
.hv-gm-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:10px;
  padding:16px;
  overflow:auto;
}
.hv-gm-item{border:none;padding:0;background:transparent;cursor:pointer;border-radius:12px;overflow:hidden}
.hv-gm-item img{width:100%;height:100%;display:block;object-fit:cover;aspect-ratio: 4 / 3;}
@media (max-width:1100px){ .hv-gm-grid{grid-template-columns:repeat(4,1fr)} }
@media (max-width:900px){ .hv-gm-grid{grid-template-columns:repeat(3,1fr)} }
@media (max-width:640px){
  .hv-gmodal{padding:12px}
  .hv-gm-grid{grid-template-columns:repeat(2,1fr);padding:12px}
}
