/* =========================================================
   Sea You Property — WCML Currency Switcher
   WCML 5.6+ renders the options as <button>, not <a>, so the old
   anchor-based custom CSS stopped matching. This file targets the
   current markup and applies to every switcher on the site.
   ========================================================= */

/* ---------- active currency button ---------- */
body .wcml_currency_switcher .wcml-cs-active-currency > .wcml-cs-item-toggle {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 16px 52px 16px 22px !important;
  background: #F4EBDE !important;
  border: 1px solid rgba(122,95,60,.15) !important;
  border-radius: 8px !important;
  color: #5C4B37 !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3 !important;
  text-align: left !important;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.04) !important;
  transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}

/* chevron (replaces the plugin's default triangle) */
body .wcml_currency_switcher .wcml-cs-active-currency > .wcml-cs-item-toggle::after {
  content: "" !important;
  position: absolute;
  right: 22px;
  top: 50%;
  display: block;
  width: 8px;
  height: 8px;
  margin: -6px 0 0 0;
  border: 0 !important;
  border-right: 2px solid #8B7254 !important;
  border-bottom: 2px solid #8B7254 !important;
  transform: rotate(45deg);
  transition: transform .35s ease, margin .35s ease;
}

body .wcml_currency_switcher .wcml-cs-active-currency:hover > .wcml-cs-item-toggle,
body .wcml_currency_switcher .wcml-cs-active-currency:focus-within > .wcml-cs-item-toggle {
  background: #FFF8F0 !important;
  border-color: #C9A66B !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08) !important;
}
body .wcml_currency_switcher .wcml-cs-active-currency:hover > .wcml-cs-item-toggle::after,
body .wcml_currency_switcher .wcml-cs-active-currency:focus-within > .wcml-cs-item-toggle::after {
  transform: rotate(225deg);
  margin-top: -2px;
}
body .wcml_currency_switcher .wcml-cs-item-toggle:focus-visible { outline: 2px solid #C9A66B; outline-offset: 2px; }

/* ---------- list wrappers: drop the plugin's gray borders / backgrounds ---------- */
body .wcml_currency_switcher li { background: none !important; border: 0 !important; }
body .wcml_currency_switcher .wcml-cs-submenu li { border-bottom: 1px solid rgba(0,0,0,.05) !important; }
body .wcml_currency_switcher .wcml-cs-submenu li:last-child { border-bottom: 0 !important; }

/* ---------- dropdown panel ---------- */
body .wcml_currency_switcher .wcml-cs-submenu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #FFFDF9 !important;
  border: 1px solid rgba(122,95,60,.12) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.10) !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
  z-index: 500 !important;
}
body .wcml_currency_switcher .wcml-cs-active-currency:hover > .wcml-cs-submenu,
body .wcml_currency_switcher .wcml-cs-active-currency:focus-within > .wcml-cs-submenu {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* ---------- currency options ---------- */
body .wcml_currency_switcher .wcml-cs-submenu button {
  display: block !important;
  width: 100% !important;
  padding: 15px 20px !important;
  background: transparent !important;
  border: 0 !important;
  color: #6C5A46 !important;
  font-family: inherit;
  font-size: 15px !important;
  line-height: 1.3 !important;
  text-align: left !important;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, padding .25s ease;
}
body .wcml_currency_switcher .wcml-cs-submenu button:hover,
body .wcml_currency_switcher .wcml-cs-submenu button:focus-visible {
  background: #F5E9D6 !important;
  color: #8B6D42 !important;
  padding-left: 28px !important;
}

@media (prefers-reduced-motion: reduce) {
  body .wcml_currency_switcher * { transition: none !important; }
}
/* property page, tablet + mobile: currency dropdown inside the info card, under the title */
body .elementor-widget.sy-cs-mobile { width: 100% !important; align-self: stretch; }\nbody .sy-cs-mobile .wcml-dropdown.product { width: 100%; max-width: 100%; margin: 4px 0 12px; }
/* lift the whole switcher widget above listing cards (badges use z-index 100) but below the header (999) */
body .elementor-widget-shortcode:has(.wcml_currency_switcher) { position: relative !important; z-index: 200 !important; }