/* ==================================================
   BUTTONS
   ================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);

  background: var(--color-brand-accent);
  color: var(--color-text-inverse);

  font-weight: 500;
  cursor: pointer;
  border: none;

  box-shadow: var(--shadow-soft);
  transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(1px);
}


/* ==================================================
   CONTENT WRAPPER
   ================================================== */

  .content-wrapper {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-lg);

    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px); /* für Safari */
  }


/* ------------------------------------------------------  HEADER + NAVIGATION  -------- */

.site-header {
  background: var(--color-header-bg);
  color: var(--color-text-inverse);
}

.site-menu {
  background: var(--color-nav-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Navigation Links */

.site-menu a,
.nav-parent-btn,
.nav-cluster-btn,
.nav-more-btn,
.desktop-nav .nav-dropdown li a,
.nav-more-menu li a {
  all: unset;
  display: inline-flex;
  align-items: center;
  height: 100%;

  cursor: pointer;
  white-space: nowrap;

  color: var(--color-text-inverse);
  font-weight: 500;
  line-height: 1.2;

  padding: 0 2px;
  border-bottom: 2px solid transparent;
}

.site-menu a:hover,
.site-menu a.active,
.desktop-nav .nav-dropdown li a:hover,
.nav-more-menu li a:hover,
.has-dropdown:hover > .nav-parent-btn,
.has-dropdown:focus-within > .nav-parent-btn,
.has-dropdown:hover > .nav-cluster-btn,
.has-dropdown:focus-within > .nav-cluster-btn,
.nav-more:hover .nav-more-btn,
.nav-more:focus-within .nav-more-btn {
  border-bottom-color: var(--color-text-inverse);
}

/* Dropdown Visual */

.desktop-nav .nav-dropdown,
.nav-more-menu {
  background: var(--color-nav-bg);
  border-radius: 0;
  box-shadow: var(--shadow-medium);
  border-top: 1px solid rgba(255,255,255,0.14);
}

.desktop-nav .nav-dropdown,
.nav-more-menu {
  padding: 4px 0;
}

.desktop-nav .nav-dropdown li,
.nav-more-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav .nav-dropdown li a,
.nav-more-menu li a {
  display: block;
  padding: 6px 16px 6px 10px;
  border-radius: 0;
  line-height: 1.2;
}

.desktop-nav .nav-dropdown li a:hover,
.nav-more-menu li a:hover {
  background: none;
}

/* Dropdown Base */
.desktop-nav li {
  position: relative;
}

.desktop-nav .nav-dropdown,
.nav-more-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content; /* so breit wie längstes Label */
  z-index: 1000;
}

/* Hover / Focus aktiviert Dropdown */
.desktop-nav li.has-dropdown:hover > .nav-dropdown,
.desktop-nav li.has-dropdown:focus-within > .nav-dropdown,
.nav-more:hover > .nav-more-menu,
.nav-more:focus-within > .nav-more-menu {
  display: block;
}

/* Desktop Nav horizontal */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav > li {
  display: flex;
  align-items: center;
}




/* --------------------------------------------------------------------------  LANGUAGE SWITCH  -----*/

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.lang-switch img {
  width: 22px;
  height: 14px;
  border-radius: 3px;
  opacity: 0.7;
}

.lang-switch a.active img {
  opacity: 1;
  outline: 1px solid var(--color-text-inverse);
  outline-offset: 2px;
}

.banner-lang-switch {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;

  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language-Switcher im Banner: Flags + Select nebeneinander */
.banner-lang-switch .lang-switch {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.banner-lang-switch .lang-switch__languages {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.banner-lang-switch img {
  width: 26px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.banner-lang-switch a.is-active img {
  opacity: 1;
  outline: 1px solid var(--color-text-inverse);
  outline-offset: 2px;
}

.banner-lang-switch__currency .currency-switcher select {
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 0 !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}



/* ==================================================
   SEARCH RESULTS (VISUAL)
   ================================================== */

.page-type-search-results .search-results-filters,
.page-type-search-results .villa-result-card {
  background: var(--color-surface);
  /*border: 1px solid var(--color-border);*/
  border-radius: var(--radius-md);
}


.villa-result-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.villa-result-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.page-type-search-results .villa-meta,
.page-type-search-results .villa-short-description {
  color: var(--color-text-muted);
}

.page-type-search-results .villa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.page-type-search-results .villa-meta .villa-location {
  margin: 0;
}


/* ==================================================
   INDEX: VILLA-GRID (MAX. 3 SPALTEN)
   ================================================== */

.page-type-index .search-results-layout {
  margin-top: var(--space-lg);
}

.page-type-index .search-results-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-lg);
}

.page-type-index .villa-city-group-title {
  grid-column: 1 / -1;
  margin: 0.25rem 0 -0.25rem;
  color: var(--color-primary);
}

@media (min-width: 1280px) {
  .page-type-index .search-results-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==================================================
   MOBILE VISUALS
   ================================================== */

/* Standard: Mobile-Elemente ausblenden, Desktop-Header/-Menu zeigen */
.mobile-header,
.mobile-drawer {
  display: none;
}

.mobile-header {
  background: var(--color-header-bg);
}

/* Mobile Header Layout */
.mobile-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
}
.mobile-header__logo-img {
  height: 40px;
}
.mobile-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mobile-header__menu-btn {
  border: none;
  background: transparent;
  color: var(--color-text-inverse);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
}

/* Mobile Drawer – Off-Canvas Navigation */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  pointer-events: none;
}
.mobile-drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
  z-index: 1;
}
.mobile-drawer__panel {
  position: relative;
  z-index: 2;
  width: 78%;
  max-width: 320px;
  height: 100%;
  margin-left: auto;
  background: #fff;
  box-shadow: -4px 0 18px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}
.drawer-close {
  border: none;
  background: transparent;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}
.drawer-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}
.drawer-menu-level {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drawer-menu-level > .drawer-menu-item > a {
  display: block;
  padding: 0.5rem 1rem;
  color: inherit;
  text-decoration: none;
}
.drawer-menu-level > .drawer-menu-item > a:hover {
  background: #f3f4f6;
}

.drawer-lang {
  padding: 0.5rem 0.75rem 0.25rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.drawer-search {
  padding: 0.5rem 0.75rem 0.25rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Language & Currency Switcher im Drawer (eine Zeile, gleiche Höhe) */
.drawer-lang .lang-switch--mobile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.drawer-lang .lang-switch__languages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.drawer-lang .lang-switch__languages img {
  height: 24px;
  width: auto;
  display: block;
}
.drawer-lang .lang-switch__currency select {
  height: 32px;
  font-size: 0.9rem;
  padding: 0 0.5rem;
}

/* Ab Tablet runter: Desktop-Header/-Menu verstecken, Mobile-Header/-Nav anzeigen */
@media (max-width: 768px) {
  .site-menu {
    display: none;
  }
  .mobile-header,
  .mobile-drawer {
    display: block;
  }

  /* Top-Search unter dem Header auf Mobile */
  .top-search-wrapper {
    margin: 0.5rem 0 0.75rem;
  }
}


/* ==================================================
   BANNER – COMPLETE VISUAL SYSTEM
   ================================================== */

/* Banner visuals only (no layout rules) */
.banner {
  position: relative;
  overflow: hidden;
}

/* Overlay (nur Desktop) */

@media (min-width: 769px) {
  .banner-media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    background: linear-gradient(
      to bottom,
      var(--banner-overlay-start),
      var(--banner-overlay-mid) 45%,
      var(--banner-overlay-end)
    );
  }
}

/* Banner */

.banner-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.banner-layout {
  width: 100%;
  display: flex;
}


.banner-left {
  position: relative;
  height: 100%;
  flex: 0 0 25%;
  max-width: 25%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.banner-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--banner-blur-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1;
}

.banner-logo-link {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  z-index: 3;
}

.banner-logo {
  height: 80px;
  display: block;
}

.banner-text {
  position: relative;
  z-index: 2;
  padding: var(--space-xl);
  color: var(--color-text-inverse);
  opacity: 1;
  transition: opacity 0.35s ease;
}

.banner-text.is-fading {
  opacity: 0;
}

/* Mobile: Banner etwas kompakter, Textbereich vollbreit unter dem Bild */
@media (max-width: 768px) {
  .banner-layout {
    flex-direction: column;
  }
  .banner-left {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .banner-logo-link {
    position: static;
    margin: var(--space-sm) auto 0;
    text-align: center;
  }
  .banner-logo {
    height: 60px;
  }
  .banner-text {
    padding: var(--space-md);
  }

  .banner-left::before {
    display: none;
  }

  .banner-logo-link {
    display: none;
  }

  .banner-media::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 25%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
      to top,
      var(--banner-overlay-end),
      rgba(255, 255, 255, 0.15) 40%,
      transparent
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

/* ==================================================
   BANNER – SLIDER CORE
   ================================================== */

.banner-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Slides */
.banner-slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

.banner-slide.is-active {
  opacity: 1;
  z-index: 2;
}

/* Images */
.banner-media picture,
.banner-media img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  display: block;
}

.banner-media img {
  object-fit: cover;
}



/* ==================================================
   HERO (VISUAL)
   ================================================== */

.hero-text {
  margin: 0 var(--space-md) var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  text-align: center;
  color: var(--color-text-inverse);
  background: var(--hero-text-bg);
  border-radius: var(--hero-radius);
}

.hero-fade {
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ==================================================
   GALLERY (VISUAL)
   ================================================== */

.gallery-card {
  border-radius: var(--gallery-card-radius);
  background: var(--gallery-card-bg);
  border: 1px solid var(--gallery-card-border);
  box-shadow: var(--gallery-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:hover .gallery-card {
  transform: translateY(-4px);
  box-shadow: var(--gallery-shadow-hover);
}

.gallery-vertical-overlay {
  background: var(--gallery-overlay-bg);
}

.gallery-slide .gallery-overlay {
  font-size: var(--gallery-overlay-text-size);
}



/* -----------------------------------------------------------------------------TOP SEARCH – DESKTOP------- */

.top_search-bar {
  display: flex;
  align-items: stretch;
  gap: 12px;

  margin: 0;
  padding: 0;

  max-width: 760px;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box; /* 🔑 verhindert Rechenfehler */
}

/* ==================================================
   SEARCH FIELDS
   ================================================== */

.top_search-field {
  position: relative;
  background: #ffffff;
  border: 1px solid #003b89;
  padding: 8px 12px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  justify-content: center;

  flex: 1 1 auto;   /* Safari Fix */
  min-width: 0;
}

.top_search-field.is-active {
  border-color: #0071c2;
  box-shadow: 0 0 0 1px #0071c2;
}

.top_search-field__label {
  display: block;
  font-size: 12px;
  color: #003b89;
  line-height: 1.2;
}

.top_search-field__value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
  color: #003b89;
}

/* ==================================================
   DROPDOWN CONTAINER
   ================================================== */

.top_search-collapse {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  max-width: 100vw;

  /* halbtransparenter Hintergrund */
  background: rgba(255, 255, 255, 0.2);

  /* Border */
  border: 1px solid #003b89;

  /* Glass Blur */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Shadow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);

  padding: 12px;
  z-index: 1000;

  /* optional, aber sehr empfehlenswert */
  border-radius: 8px;
}

.top_search-field.is-active .top_search-collapse {
  display: block;
}

/* Stadt */
.top_search-field.is-city .top_search-collapse {
  width: 220px;
}

/* Zeitraum */
.top_search-field.is-date .top_search-collapse {
  width: 560px;
}

/* Gäste & Zimmer */
.top_search-field.is-guests .top_search-collapse {
  width: 360px;
}
/* ==================================================
   CITY LIST
   ================================================== */

.top_search-city-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.top_search-city-list li {
  padding: 6px;
  cursor: pointer;
  color: #015cd4;
}

.top_search-city-list li:hover {
  color: #003b89;
}

/* ==================================================
   CALENDAR
   ================================================== */

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cal-header button {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  color: #003b89;
}

.cal-header button[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal-wrap {
  display: flex;
  gap: 24px;
}

.cal {
  width: 50%;
  padding: 0 6px; /* schützt Grid vor Container-Kante */
}

.cal h4 {
  text-align: center;
  margin: 6px 0 10px;
  color: #003b89;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  font-size: 13px;
  color: #0000ff;
}

.cal-grid div {
  padding: 6px;
  text-align: center;
}

.cal-grid .dow {
  font-weight: 600;
  color: #003b89;
  font-size: 12px;
}

.cal-grid .day {
  cursor: pointer;
  border-radius: 0; /* wichtig für Range */
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.cal-grid .day.is-disabled {
  color: #b5b5b5;
  cursor: not-allowed;
  background: transparent;
}

.cal-grid .day.is-selected {
  background: #0071c2;
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
}

.cal-grid .day.is-inrange {
  background: #cfe4f7;
  color: #003b89;
  border-radius: 0;
}

.cal-grid .day:hover:not(.is-disabled):not(.is-selected) {
  background: #e8f2fb;
}

.cal-grid .day.is-today {
  outline: 1px solid #0071c2;
  outline-offset: -2px;
  font-weight: 600;
}

.cal:first-child {
  padding-right: 12px;
}

.cal:last-child {
  padding-left: 12px;
}

.cal-grid .dow,
.cal-grid .day {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================================================
   GUESTS
   ================================================== */

.guest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #003b89;
}

.guest-row button {
  width: 28px;
  height: 28px;
}

/* ==================================================
   SUBMIT BUTTON
   ================================================== */

.top_search-submit {
  display: flex;
  align-items: stretch;
}

.top_search-submit button {
  padding: 10px 18px;
  background: #0071c2;
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.top_search-submit button:hover {
  background: #005fa3;
}


/* ----------------------------------------------------------------------------------------   GALLERY   ----*/


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
}

.gallery-item {
  position: relative;
  overflow: visible;
  cursor: zoom-in;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-strong);

  box-shadow: var(--shadow-medium);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

/* Hover */
.gallery-item:hover .gallery-card {
transform: translateY(-4px);
box-shadow: var(--shadow-strong);

}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-vertical-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: none;
}

.gallery-vertical-overlay.is-visible {
  display: block;
}


.gallery-close,
.gallery-prev,
.gallery-next {
  position: fixed;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;

  z-index: 2147483647; /* 🔥 Firefox Hard-Fix */
  pointer-events: auto;

  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {
  opacity: 1;
}

.gallery-close {
  top: 20px;
  right: 24px;
  font-size: 42px;
}

.gallery-prev,
.gallery-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
}

.gallery-prev {
  left: 24px;
}
.gallery-next {
  right: 24px;
}

.gallery-track {
  position: absolute;
  inset: 0;

  display: flex;
  height: 100vh;

  transform: translate3d(0, 0, 0);
  transition: transform 0.45s ease;

  pointer-events: none; /* 🔑 Firefox */
}

.gallery-slide {
  flex: 0 0 100vw;
  height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  pointer-events: none; /* 🔑 */
}

/* Image */
.gallery-slide img {
  max-width: 100%;
  max-height: 100vh;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.gallery-slide .gallery-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);

  max-width: 90%;
  padding: 10px 18px;

  color: #fff;
  font-size: 25px;
  text-align: center;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.25), transparent);

  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.gallery-slide.is-active .gallery-overlay {
  opacity: 1;
}


/* =-------------------------------------------------------------------------------------  FOOTER  ------*/

.site-footer {
  background: var(--color-header-bg);
  color: var(--color-text-inverse);
  padding: var(--space-2xl) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

/* Links */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--color-text-inverse);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* Social */

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-social a {
  color: var(--color-text-inverse);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 1;
}

/* Conversion */

.footer-conversion {
  position: relative;
  min-height: 120px;
}

.conversion-item {
  position: absolute;
  inset: 0;

  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);

  transition:
    opacity 3.2s ease-in-out,
    transform 3.2s ease-in-out,
    filter 3.2s ease-in-out;
}


.conversion-item.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


.footer-conversion a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}




/* ---------------------------------------------------------------------- Villa search result page -----*/
/* ===============================
   VILLA RESULT CARD
================================ */

.villa-result-card {
  display: flex;
  gap: var(--space-md);
  align-items: stretch;
  margin: 0 0 var(--space-lg);
  width: 100%;
}

/* Bild-Spalte: 1/3 */
.villa-card-media {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

/* Bild selbst */
.villa-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text-Spalte: 2/3 */
.villa-card-content {
  flex: 1 1 66.666%;
  min-width: 0; /* wichtig für Chrome */
  padding-top: 10px;
}

.search_filter_step_number {
  width: 90px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 14px;
}

.search_filter_checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}


.search_filter_attr_group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  background: var(--color-surface);

  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.villa-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  /* iOS Safari Fix: Sicherstellen dass der Link clickable ist */
  pointer-events: auto;
}

.villa-card-link:active {
  opacity: 0.95;
}

.villa-result-card {
  position: relative;   /* notwendig für overlay link */
  cursor: pointer;
}

/* Badge für Top-Angebote auf der Startseite – ragt von rechts ins Bild */
.page-type-index .villa-badges {
  position: absolute;
  top: 14px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  z-index: 3;
  pointer-events: none;
}

.page-type-index .villa-badge-special {
  position: static;
  background: #dc2626; /* kräftiges Rot */
  color: #ffffff;
  padding: 4px 16px 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px 0 0 4px; /* nur links abgerundet, rechts bündig */
  z-index: 3;
  text-transform: uppercase;
  pointer-events: none;
}

.page-type-index .villa-badge-child-friendly {
  position: static;
  background: #15803d;
  color: #ffffff;
  padding: 4px 16px 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px 0 0 4px;
  text-transform: uppercase;
  pointer-events: none;
}

.page-type-index .villa-badge-privacy {
  position: static;
  background: #0f766e;
  color: #ffffff;
  padding: 4px 16px 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px 0 0 4px;
  text-transform: uppercase;
  pointer-events: none;
}

@media (max-width: 768px) {
  .villa-result-card {
    flex-direction: column;
  }
  .villa-card-media,
  .villa-card-content {
    flex: none;
    max-width: 100%;
  }
}

/* Startseite: Karten-Layout wie Kachel – Bild oben, Text unten */
.page-type-index .villa-result-card {
  flex-direction: column;
  position: relative;
  min-height: 300px;
}

.page-type-index .villa-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
  min-height: 100%;
}

.page-type-index .villa-card-media {
  flex: 0 0 auto;
  max-width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  z-index: 1;
}
.page-type-index .villa-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.page-type-index .villa-card-content {
  flex: 1 1 auto;
  padding: var(--space-sm) var(--space-sm) var(--space-md);
}

.page-type-index .villa-price {
  margin-top: 6px;
  color: var(--color-text);
  line-height: 1.25;
}

.page-type-index .villa-price strong {
  display: inline-block;
  font-size: 1.12rem;
  font-weight: 700;
}

.page-type-index .villa-price-range {
  white-space: nowrap;
}

.page-type-index .villa-price-on-request {
  font-weight: 600;
  opacity: 0.85;
}
