/* ============================================================
   wunderflats-preview UI layer
   Drives static-export surfaces: dropdowns, drawers, calendars,
   modals, popovers, filters, accordions & demos.
   All classes are prefixed `wfp-` so they never collide with the
   product stylesheets.
   ============================================================ */

.wfp-hidden { display: none !important; }
.wfp-noscroll { overflow: hidden !important; }
body.wfp-noscroll button[aria-label="Support chat"] { visibility: hidden !important; }
.ShortlistButton--saved path { fill: #542EBC !important; stroke: #542EBC !important; }

/* ---------- backdrop ---------- */
.wfp-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(24, 26, 32, 0.35);
  opacity: 0; transition: opacity 0.18s ease;
  pointer-events: none;
}
.wfp-backdrop.wfp-on { opacity: 1; pointer-events: auto; }

/* ---------- floating pop panel ---------- */
.wfp-pop {
  position: fixed; z-index: 2001;
  background: #fff; border: 1px solid #e6e8ef; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(36, 39, 46, 0.16), 0 2px 8px rgba(36, 39, 46, 0.08);
  min-width: 220px; padding: 8px;
  opacity: 0; transform: translateY(6px) scale(0.98);
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}
.wfp-pop.wfp-on { opacity: 1; transform: none; pointer-events: auto; }

/* generic menu items */
.wfp-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: transparent; color: #24272e; font: inherit; font-size: 14px;
  text-align: left; cursor: pointer; text-decoration: none;
}
.wfp-menu-item:hover, .wfp-menu-item:focus-visible { background: #f5f1fb; outline: none; }
.wfp-menu-item .wfp-ico {
  width: 20px; height: 20px; flex: none; display: inline-flex; align-items: center; justify-content: center;
}
.wfp-menu-item--danger { color: #d33a2c; }
.wfp-menu-item--danger:hover { background: #fdeeee; }
.wfp-menu-sep { height: 1px; margin: 6px 8px; background: #eef0f5; border: 0; }
.wfp-menu-label { padding: 8px 12px 2px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: #8a8f99; }

/* ---------- language dropdown (original classes reused) ---------- */
.AppHeader-LanguageDropdown { position: relative; }
.AppHeader-LanguageDropdownList.wfp-lang-list {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 2001;
  min-width: 200px; padding: 8px; background: #fff; border: 1px solid #e6e8ef; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(36, 39, 46, 0.16); list-style: none; margin: 0;
}
.AppHeader-LanguageDropdownList.wfp-lang-list.wfp-on { display: block; }
.AppHeader-LanguageDropdownList.wfp-lang-list li { margin: 0; }
.wfp-lang-flag {
  width: 22px; height: 22px; flex: none; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: #24272e; letter-spacing: 0;
  background: transparent;
}
.wfp-lang-flag svg,
.wfp-lang-flag img,
.AppHeader-LanguageDropdownButton svg,
.AppHeader-LanguageDropdownButton img.wf-header-flag {
  width: 22px; height: 22px; display: block; border-radius: 50%; object-fit: cover;
}

/* One hamburger only: hide the mobile twin when the desktop control exists */
@media (min-width: 480px) {
  .AppHeaderUserMenu:has(.AppHeaderUserMenu-ToggleButton-desktop) .AppHeaderUserMenu-ToggleButton-mobile {
    display: none !important;
  }
}
@media (max-width: 479px) {
  .AppHeaderUserMenu-ToggleButton-desktop {
    display: none !important;
  }
}
/* Logged-in desktop: avatar only, do not also paint a burger in the same button */
.AppHeaderUserMenu-ToggleButton-desktop.AppHeaderUserMenu-ToggleButton--userIsLoggedIn .AppHeaderUserMenu-BurgerMenuIcon {
  display: none !important;
}

/* ---------- drawer (mobile menu / filters) ---------- */
.wfp-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 2002;
  width: min(92vw, 380px); background: #fff;
  transform: translateX(102%); transition: transform 0.22s ease;
  display: flex; flex-direction: column;
}
.wfp-drawer.wfp-on { transform: none; }
.wfp-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #eef0f5;
}
.wfp-drawer-head .wfp-title { font-size: 17px; font-weight: 600; color: #24272e; }
.wfp-iconbtn {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent;
  color: #24272e; font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center;
}
.wfp-iconbtn:hover { background: #f5f1fb; }
.wfp-drawer-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; }
.wfp-drawer-body .wfp-navitem {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 4px; border-bottom: 1px solid #f2f3f7;
  background: transparent; border-left: 0; border-right: 0; border-top: 0;
  font: inherit; font-size: 15px; color: #24272e; cursor: pointer; text-align: left; text-decoration: none;
}
.wfp-drawer-body .wfp-navitem:hover { color: #732dd9; }
.wfp-drawer-section-label {
  font-size: 11px; letter-spacing: .7px; text-transform: uppercase; color: #8a8f99;
  margin: 18px 4px 4px; font-weight: 600;
}
.wfp-lang-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.wfp-lang-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border: 1px solid #e6e8ef; border-radius: 999px; background: #fff;
  font-size: 13px; color: #24272e; cursor: pointer; text-decoration: none;
}
.wfp-lang-chip:hover { border-color: #732dd9; color: #732dd9; }

/* ---------- centered modal ---------- */
.wfp-modal {
  position: fixed; left: 50%; top: 50%; z-index: 2002; transform: translate(-50%, -46%);
  width: min(560px, calc(100vw - 32px)); max-height: min(84vh, 720px); overflow: auto;
  background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(24, 26, 32, 0.28);
  opacity: 0; transition: opacity 0.16s ease, transform 0.16s ease; pointer-events: none;
}
.wfp-modal.wfp-on { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.wfp-modal-head {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: #fff; border-bottom: 1px solid #eef0f5; border-radius: 14px 14px 0 0;
}
.wfp-modal-head .wfp-title { font-size: 18px; font-weight: 600; color: #24272e; }
.wfp-modal-body { padding: 18px 20px 22px; }

/* ---------- toast ---------- */
.wfp-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); z-index: 3000;
  background: #24272e; color: #fff; font-size: 14px; padding: 11px 18px; border-radius: 10px;
  box-shadow: 0 8px 24px rgba(24, 26, 32, .3); opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; max-width: min(520px, calc(100vw - 32px)); text-align: center;
}
.wfp-toast.wfp-on { opacity: 1; transform: translate(-50%, 0); }
.wfp-toast.wfp-toast--primary { background: #732dd9; }

/* ---------- calendar ---------- */
.wfp-cal { user-select: none; width: 320px; max-width: calc(100vw - 40px); }
.wfp-cal-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 8px; }
.wfp-cal-title { font-size: 15px; font-weight: 600; color: #24272e; }
.wfp-cal-nav {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent;
  color: #732dd9; font-size: 16px; cursor: pointer; line-height: 1;
}
.wfp-cal-nav:hover { background: #f5f1fb; }
.wfp-cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.wfp-cal-week span { text-align: center; font-size: 11px; font-weight: 600; color: #8a8f99; padding: 4px 0; }
.wfp-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.wfp-cal-day {
  aspect-ratio: 1 / 0.9; border: 0; background: transparent; border-radius: 8px;
  font-size: 13px; color: #24272e; cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: 30px;
}
.wfp-cal-day:hover { background: #f5f1fb; }
.wfp-cal-day--dim { color: #c2c6cf; }
.wfp-cal-day--off { color: #d5d8de; pointer-events: none; cursor: default; }
.wfp-cal-day--today { box-shadow: inset 0 0 0 1px #c9a6f0; }
.wfp-cal-day--from, .wfp-cal-day--to { background: #732dd9; color: #fff; font-weight: 600; border-radius: 8px; }
.wfp-cal-day--from:hover, .wfp-cal-day--to:hover { background: #5f1fd1; color: #fff; }
.wfp-cal-day--in { background: #f0e6fc; color: #732dd9; }
.wfp-cal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px solid #eef0f5; }

.wfp-btn {
  border: 1px solid #e6e8ef; background: #fff; color: #24272e; font: inherit; font-size: 14px;
  font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer;
}
.wfp-btn:hover { border-color: #c9c6d4; }
.wfp-btn--primary { background: #732dd9; border-color: #732dd9; color: #fff; }
.wfp-btn--primary:hover { background: #5f1fd1; border-color: #5f1fd1; }
.wfp-btn--ghost { border: 0; background: transparent; color: #732dd9; }
.wfp-btn--disabled { opacity: .45; cursor: default; }

/* ---------- filter sheets ---------- */
.wfp-field { margin: 0 0 16px; }
.wfp-field > label { display: block; font-size: 13px; font-weight: 600; color: #24272e; margin-bottom: 8px; }
.wfp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wfp-chip {
  border: 1px solid #e6e8ef; background: #fff; color: #24272e; border-radius: 999px;
  padding: 7px 13px; font-size: 13px; cursor: pointer;
}
.wfp-chip:hover { border-color: #c9a6f0; }
.wfp-chip.wfp-on { background: #f0e6fc; border-color: #732dd9; color: #732dd9; font-weight: 600; }
.wfp-stepper { display: flex; align-items: center; gap: 14px; }
.wfp-stepper button {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e6e8ef; background: #fff;
  font-size: 18px; color: #732dd9; cursor: pointer; line-height: 1;
}
.wfp-stepper button:hover:not(:disabled) { background: #f5f1fb; }
.wfp-stepper button:disabled { color: #c2c6cf; cursor: default; }
.wfp-stepper .wfp-val { min-width: 20px; text-align: center; font-weight: 700; font-size: 15px; }
.wfp-range-labels { display: flex; justify-content: space-between; font-size: 12px; color: #8a8f99; margin-top: 4px; }
.wfp-input {
  width: 100%; border: 1px solid #e6e8ef; border-radius: 8px; padding: 10px 12px;
  font: inherit; font-size: 14px; color: #24272e;
}
.wfp-input:focus { outline: none; border-color: #732dd9; box-shadow: 0 0 0 3px rgba(115, 45, 217, .15); }
.wfp-check { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 14px; color: #24272e; cursor: pointer; }
.wfp-check input { width: 17px; height: 17px; accent-color: #732dd9; margin: 0; }
.wfp-applybar { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 0 0; background: #fff; }

/* ---------- search suggestions ---------- */
.wfp-suggest { padding: 4px 0; }
.wfp-suggest-item {
  display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none;
  padding: 9px 12px; border-radius: 8px; text-align: left; cursor: pointer; font: inherit; font-size: 14px; color: #24272e;
}
.wfp-suggest-item:hover { background: #f5f1fb; }
.wfp-suggest-item .wfp-pin { color: #a7aab4; font-size: 16px; }
.wfp-empty-hint { font-size: 13px; color: #8a8f99; padding: 10px 4px; }

/* ---------- read more ---------- */
.CityDescriptionCard-additionalContent { display: none; }
.CityDescriptionCard-additionalContent.wfp-open { display: list-item; }
.CityDescriptionCard-readMoreBtn[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* ---------- lightbox ---------- */
.wfp-lbox {
  position: fixed; inset: 0; z-index: 2100; background: rgba(18, 18, 20, 0.94);
  display: flex; flex-direction: column; opacity: 0; transition: opacity .16s; pointer-events: none;
}
.wfp-lbox.wfp-on { opacity: 1; pointer-events: auto; }
.wfp-lbox-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; color: #fff; }
.wfp-lbox-close, .wfp-lbox-nav { border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 50%; cursor: pointer; }
.wfp-lbox-close { width: 38px; height: 38px; font-size: 18px; }
.wfp-lbox-close:hover, .wfp-lbox-nav:hover { background: rgba(255,255,255,.2); }
.wfp-lbox-stage { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 0; }
.wfp-lbox-stage img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.wfp-lbox-nav { width: 46px; height: 46px; font-size: 22px; position: absolute; top: 50%; transform: translateY(-50%); }
.wfp-lbox-nav--prev { left: 18px; }
.wfp-lbox-nav--next { right: 18px; }
.wfp-lbox-count { font-size: 13px; color: rgba(255,255,255,.7); }

/* ---------- share ---------- */
.wfp-share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-top: 4px; }
.wfp-share-item {
  display: flex; align-items: center; gap: 9px; border: 1px solid #e6e8ef; background: #fff;
  border-radius: 8px; padding: 9px 10px; font-size: 13px; color: #24272e; cursor: pointer; text-decoration: none;
}
.wfp-share-item:hover { background: #f5f1fb; }
.wfp-share-ico { width: 16px; height: 16px; flex: none; }
.wfp-share-copy { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.wfp-share-copy input { flex: 1; }

/* ---------- wizard pop info ---------- */
.wfp-info { width: 280px; font-size: 13px; line-height: 1.5; color: #24272e; }
.wfp-info h4 { margin: 0 0 6px; font-size: 14px; }

/* ---------- list / map switch (static preview) ---------- */
.wfp-map-region.wfp-hidden { display: none !important; }
.wfp-list-region.wfp-hidden { display: none !important; }

/* ---------- accordions that are not <details> ---------- */
.wfp-acc-panel { display: none; }
.wfp-acc-item.wfp-open > .wfp-acc-panel { display: block; }

.wf-auth-step { margin-top: 8px; max-width: 520px; }
.wf-auth-email-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 0 0 18px;
}
.wf-auth-email-value {
  color: #170c37; font: 600 16px/1.4 Poppins, sans-serif; word-break: break-all;
}
.wf-auth-fields { display: flex; flex-direction: column; gap: 12px; }
.wf-auth-fields .InputText-input { min-width: 0; }
