/* ==========================================================================
   DETAILINGSHOP.cz — Bento Hub „Průvodce Jak na to“ (Světlá foto varianta)
   Soubor: ds-guide-bento-v1.css
   ========================================================================== */

body.in-index .footer-banners.ds-guide-bento {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 22px 0 32px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.in-index .footer-banners.ds-guide-bento::before,
body.in-index .footer-banners.ds-guide-bento::after {
  content: none !important;
  display: none !important;
}

body.in-index main > .footer-banners.ds-guide-bento + .homepage-group-title {
  margin-top: 32px !important;
}

/* Hlavička sekce */
.ds-guide-bento .ds-bento-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.ds-guide-bento .ds-bento-head h2 {
  margin: 0;
  font-family: var(--ds-font-display, 'Google Sans', sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ds-fg, #262f34);
  letter-spacing: -0.01em;
}

.ds-guide-bento .ds-bento-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--ds-fg-subtle, #6b7789);
  margin-left: 8px;
}

.ds-guide-bento .ds-bento-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--ds-accent, #02838f);
  text-decoration: none;
  white-space: nowrap;
}

.ds-guide-bento .ds-bento-all:hover,
.ds-guide-bento .ds-bento-all:focus-visible {
  color: var(--ds-accent-hover, #016973);
  text-decoration: underline;
}

/* Hlavní Bento mřížka */
.ds-guide-bento .ds-bento-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

/* Reset Shoptet Bootstrap sloupců uvnitř Bento */
.ds-guide-bento .footer-banner {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.ds-guide-bento .extended-banner-texts,
.ds-guide-bento .extended-banner-title {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: left !important;
}

/* 1) Hero karta: Začínám s detailingem */
.ds-guide-bento .ds-bento-hero-wrap {
  display: flex;
}

.ds-guide-bento .ds-bento-hero-wrap > a {
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 318px;
  padding: 22px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: #ffffff !important;
  background: #172428;
  box-sizing: border-box;
}

.ds-guide-bento .ds-bento-hero-wrap > a > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.4s ease;
}

.ds-guide-bento .ds-bento-hero-wrap > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 30, 34, 0.14) 0%,
    rgba(12, 29, 34, 0.56) 46%,
    rgba(2, 69, 76, 0.94) 100%
  );
  pointer-events: none;
}

.ds-guide-bento .ds-bento-hero-wrap > a:hover > img,
.ds-guide-bento .ds-bento-hero-wrap > a:focus-visible > img {
  transform: scale(1.06);
}

.ds-guide-bento .ds-bento-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ds-guide-bento .ds-bento-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: var(--ds-accent, #02838f);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.ds-guide-bento .ds-bento-hero-wrap .extended-banner-title {
  display: block !important;
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  margin-bottom: 7px !important;
}

.ds-guide-bento .ds-bento-hero-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.88);
}

.ds-guide-bento .ds-bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 7px 14px;
  border-radius: 9999px;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.ds-guide-bento .ds-bento-hero-wrap > a:hover .ds-bento-cta,
.ds-guide-bento .ds-bento-hero-wrap > a:focus-visible .ds-bento-cta {
  background: var(--ds-accent, #02838f);
  border-color: var(--ds-accent, #02838f);
}

/* 2) Pravá 3x3 mřížka světlých foto-karet */
.ds-guide-bento .ds-bento-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ds-guide-bento .ds-bento-cards .footer-banner {
  display: flex;
}

.ds-guide-bento .ds-bento-cards .footer-banner > a {
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 98px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ds-surface, #ffffff) !important;
  border: 1px solid var(--ds-border, #dbe0e7) !important;
  color: var(--ds-fg, #262f34) !important;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ds-guide-bento .ds-bento-cards .footer-banner > a:hover,
.ds-guide-bento .ds-bento-cards .footer-banner > a:focus-visible {
  border-color: var(--ds-accent, #02838f) !important;
  background: var(--ds-accent-soft, #e9f6f8) !important;
  box-shadow: 0 10px 24px -10px rgba(2, 131, 143, 0.22);
  transform: translateY(-2px);
}

.ds-guide-bento .ds-bento-cards .footer-banner > a > img {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px;
  border-radius: 8px;
  object-fit: cover !important;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ds-guide-bento .ds-bento-cards .extended-banner-texts {
  flex: 1 1 auto;
  min-width: 0;
  display: flex !important;
  flex-direction: column;
  gap: 3px;
}

.ds-guide-bento .ds-bento-cards .extended-banner-title {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--ds-fg, #262f34) !important;
}

.ds-guide-bento .ds-bento-cards .footer-banner > a:hover .extended-banner-title,
.ds-guide-bento .ds-bento-cards .footer-banner > a:focus-visible .extended-banner-title {
  color: var(--ds-accent-hover, #016973) !important;
}

.ds-guide-bento .ds-bento-card-sub {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--ds-fg-subtle, #6b7789);
}

.ds-guide-bento .ds-bento-arrow {
  font-size: 16px;
  line-height: 1;
  color: var(--ds-fg-subtle, #6b7789);
  opacity: 0.6;
  flex-shrink: 0;
  transition: transform 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

.ds-guide-bento .ds-bento-cards .footer-banner > a:hover .ds-bento-arrow,
.ds-guide-bento .ds-bento-cards .footer-banner > a:focus-visible .ds-bento-arrow {
  transform: translateX(3px);
  color: var(--ds-accent, #02838f);
  opacity: 1;
}

/* ==========================================================================
   RESPONZIVITA: MENŠÍ DESKTOP & TABLET (768–1149 px)
   ========================================================================== */
@media (max-width: 1149px) {
  .ds-guide-bento .ds-bento-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ds-guide-bento .ds-bento-hero-wrap > a {
    min-height: 158px;
    padding: 18px 20px;
  }

  .ds-guide-bento .ds-bento-hero-desc {
    max-width: 560px;
    margin-bottom: 10px;
  }
}

@media (max-width: 991px) {
  .ds-guide-bento .ds-bento-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-guide-bento .ds-bento-cards .footer-banner:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   RESPONZIVITA: MOBIL (<= 767 px)
   ========================================================================== */
@media (max-width: 767px) {
  body.in-index .footer-banners.ds-guide-bento {
    margin: 16px 0 24px !important;
  }

  .ds-guide-bento .ds-bento-head {
    margin-bottom: 10px;
  }

  .ds-guide-bento .ds-bento-head h2 {
    font-size: 17px;
  }

  .ds-guide-bento .ds-bento-sub {
    display: none;
  }

  .ds-guide-bento .ds-bento-grid {
    gap: 9px;
  }

  .ds-guide-bento .ds-bento-hero-wrap > a {
    min-height: 134px;
    padding: 15px;
  }

  .ds-guide-bento .ds-bento-badge {
    font-size: 9.5px;
    margin-bottom: 6px;
  }

  .ds-guide-bento .ds-bento-hero-wrap .extended-banner-title {
    font-size: 16.5px !important;
    margin-bottom: 6px !important;
  }

  .ds-guide-bento .ds-bento-hero-desc {
    display: none;
  }

  .ds-guide-bento .ds-bento-cta {
    font-size: 11.5px;
    padding: 5px 11px;
  }

  .ds-guide-bento .ds-bento-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .ds-guide-bento .ds-bento-cards .footer-banner > a {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 8px;
    min-height: 0;
  }

  .ds-guide-bento .ds-bento-cards .footer-banner > a > img {
    width: 100% !important;
    height: 68px !important;
    min-width: 0;
    border-radius: 6px;
  }

  .ds-guide-bento .ds-bento-cards .extended-banner-title {
    font-size: 12px !important;
    line-height: 1.26 !important;
  }

  .ds-guide-bento .ds-bento-card-sub,
  .ds-guide-bento .ds-bento-arrow {
    display: none;
  }

  /* 9. (lichá) karta na mobilu přes celou šířku v horizontálním rozložení */
  .ds-guide-bento .ds-bento-cards .footer-banner:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .ds-guide-bento .ds-bento-cards .footer-banner:last-child:nth-child(odd) > a {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .ds-guide-bento .ds-bento-cards .footer-banner:last-child:nth-child(odd) > a > img {
    width: 78px !important;
    height: 54px !important;
    min-width: 78px;
  }

  .ds-guide-bento .ds-bento-cards .footer-banner:last-child:nth-child(odd) .ds-bento-arrow {
    display: inline-block;
  }
}
