/* =============================================
   VoresKalundborg – Butikker shortcode
   Placering: /wp-content/themes/dit-child-theme/butikker.css
   Enqueue i functions.php:
   wp_enqueue_style('vk-butikker', get_stylesheet_directory_uri() . '/butikker.css');
   wp_enqueue_script('vk-butikker', get_stylesheet_directory_uri() . '/butikker.js', array(), null, true);
   ============================================= */

/* --- Søgefelt – trækkes op over hero-sektionen --- */
.vk-b-search-wrap {
  margin-top: -24px;
  margin-bottom: 32px;
  position: relative;
  z-index: 10;
}

.vk-b-search-bar {
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.vk-b-search-input {
  flex: 1;
  border: none !important;
  outline: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  background: transparent;
  padding: 8px 0;
}

.vk-b-search-input::placeholder {
  color: rgba(44, 44, 44, 0.75);
}

/* --- Layout: filter til venstre, grid til højre --- */
.vk-b-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: 28px;
  align-items: start;
}

/* =============================================
   ACCORDION FILTER
   ============================================= */

.vk-b-filter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vk-b-filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.75);
}

.vk-b-reset {
  font-size: 12px;
  color: #468F9E;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  padding: 0;
  visibility: hidden;
}

.vk-b-reset.show {
  visibility: visible;
}

.vk-b-alle {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
  cursor: pointer;
  background: #1E2E1E;
  color: #fff;
  border: none;
  margin-bottom: 8px;
  transition: opacity 0.15s;
}

.vk-b-alle.inactive {
  background: rgba(44, 44, 44, 0.07);
  color: rgba(44, 44, 44, 0.75);
  font-weight: 500;
}

.vk-b-alle:hover {
  opacity: 0.85;
}

/* Accordion gruppe */
.vk-b-acc-group {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(44, 44, 44, 0.07);
  margin-bottom: 6px;
  overflow: hidden;
}

.vk-b-acc-group.has-active {
  border-color: rgba(70, 143, 158, 0.3);
}

.vk-b-acc-header {
  width: 100%;
  background: none;
  border: none;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  text-align: left;
}

.vk-b-acc-group.has-active .vk-b-acc-header {
  background: rgba(70, 143, 158, 0.05);
}

/* Accordion uden underkategorier – hele headeren er klikbar som filter */
.vk-b-acc-header--leaf {
  cursor: pointer;
}

.vk-b-acc-header--leaf:hover .vk-b-acc-name {
  color: #468F9E;
}

.vk-b-acc-group.has-active .vk-b-acc-header--leaf {
  background: rgba(70, 143, 158, 0.1);
}

.vk-b-acc-group.has-active .vk-b-acc-header--leaf .vk-b-acc-name {
  color: #2d6e7a;
  font-weight: 700;
}

.vk-b-acc-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vk-b-acc-name {
  font-size: 13px;
  font-weight: 600;
  color: #2C2C2C;
}

.vk-b-acc-group.has-active .vk-b-acc-name {
  color: #1E2E1E;
}

.vk-b-acc-count {
  font-size: 11px;
  background: rgba(44, 44, 44, 0.06);
  color: rgba(44, 44, 44, 0.75);
  padding: 2px 7px;
  border-radius: 100px;
}

.vk-b-chev {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: rgba(44, 44, 44, 0.75);
}

.vk-b-chev.open {
  transform: rotate(180deg);
}

.vk-b-acc-body {
  display: none;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(44, 44, 44, 0.06);
  flex-wrap: wrap;
  gap: 6px;
}

.vk-b-acc-body.open {
  display: flex;
}

.vk-b-tag {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(44, 44, 44, 0.05);
  color: rgba(44, 44, 44, 0.75);
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'Work Sans', sans-serif;
  transition: all 0.15s;
  white-space: nowrap;
}

.vk-b-tag:hover {
  background: rgba(44, 44, 44, 0.1);
  color: #2C2C2C;
}

.vk-b-tag.active {
  background: rgba(70, 143, 158, 0.1);
  color: #2d6e7a;
  border-color: rgba(70, 143, 158, 0.35);
  font-weight: 600;
}

.vk-b-acc-empty {
  font-size: 12px;
  color: rgba(44, 44, 44, 0.75);
}

/* =============================================
   GRID
   ============================================= */

.vk-b-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.vk-b-results-count {
  font-size: 13px;
  color: rgba(44, 44, 44, 0.75);
}

.vk-b-results-count strong {
  color: #2C2C2C;
}

.vk-b-sort {
  font-family: 'Work Sans', sans-serif;
  font-size: 13px;
  color: #2C2C2C;
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.12);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  outline: none;
}

.vk-b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* =============================================
   BUTIKSKORT
   ============================================= */

.vk-b-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(44, 44, 44, 0.07);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.vk-b-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
}

.vk-b-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EBE4D1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vk-b-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vk-b-logo-img {
  object-fit: contain !important;
  padding: 20px;
}

.vk-b-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2C2C2C;
  opacity: 0.2;
}

.vk-b-card-body {
  padding: 14px 16px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.vk-b-card-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #468F9E;
}

.vk-b-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1E2E1E;
  line-height: 1.3;
}

.vk-b-card-addr {
  font-size: 12px;
  color: rgba(44, 44, 44, 0.75);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.vk-b-card-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(44, 44, 44, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vk-b-card-hours {
  font-size: 11px;
  color: rgba(44, 44, 44, 0.75);
  display: flex;
  align-items: center;
  gap: 4px;
}

.vk-b-card-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #EBE4D1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  color: #2C2C2C;
  flex-shrink: 0;
}

.vk-b-card:hover .vk-b-card-arrow {
  background: #D98244;
  color: #fff;
}

/* Ingen resultater */
.vk-b-no-results {
  text-align: center;
  padding: 60px 0;
  display: none;
  color: rgba(44, 44, 44, 0.75);
}

.vk-b-no-results.show {
  display: block;
}

.vk-b-no-results svg {
  margin: 0 auto 14px;
  display: block;
  opacity: 0.25;
}

.vk-b-no-results h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1E2E1E;
  margin-bottom: 8px;
}

.vk-b-no-results p {
  font-size: 14px;
}

/* Fjern Elementors rode hover/focus på alle knapper i shortcoden */
.vk-butikker button:hover,
.vk-butikker button:focus,
.vk-butikker button:active,
.vk-butikker button:focus-visible {
    background-color: unset;
    color: unset;
    outline: none;
}

/* "Alle butikker" – bevar mørkegrøn på hover/focus */
.vk-butikker .vk-b-alle:hover,
.vk-butikker .vk-b-alle:focus,
.vk-butikker .vk-b-alle:active,
.vk-butikker .vk-b-alle:focus-visible {
    background: #1E2E1E;
    color: #fff;
    opacity: 0.85;
}

/* "Alle butikker" – inactive variant */
.vk-butikker .vk-b-alle.inactive:hover,
.vk-butikker .vk-b-alle.inactive:focus,
.vk-butikker .vk-b-alle.inactive:focus-visible {
    background: rgba(44, 44, 44, 0.07);
    color: rgba(44, 44, 44, 0.75);
    opacity: 1;
}

/* Accordion-headere – subtil hover */
.vk-butikker .vk-b-acc-header:hover,
.vk-butikker .vk-b-acc-header:focus,
.vk-butikker .vk-b-acc-header:focus-visible {
    background: rgba(44, 44, 44, 0.04) !important;
    color: #2C2C2C !important;
}

/* Leaf-headere – teal hover i stedet for Elementors blå */
.vk-butikker .vk-b-acc-header--leaf:hover,
.vk-butikker .vk-b-acc-header--leaf:focus,
.vk-butikker .vk-b-acc-header--leaf:focus-visible {
    background: rgba(70, 143, 158, 0.05) !important;
    color: #2C2C2C !important;
}

/* Tags – bevar teal hover */
.vk-butikker .vk-b-tag:hover,
.vk-butikker .vk-b-tag:focus,
.vk-butikker .vk-b-tag:focus-visible {
    background: rgba(44, 44, 44, 0.1);
    color: #2C2C2C;
}

/* =============================================
   RESPONSIV
   ============================================= */

@media (max-width: 900px) {
  .vk-butikker {
    padding-left: 16px;
    padding-right: 16px;
  }

  .vk-b-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .vk-b-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .vk-b-grid {
    grid-template-columns: 1fr;
  }
}
