/* Custom Elementor Widget — front-end styles.
   Colours/sizes below are fallbacks; the widget's Style controls override
   them per element ({{WRAPPER}} .cew-wa). */

/* ---------------------------------------------------------------------------
   Floating WhatsApp (03.component/WhatsApp.css)
   --------------------------------------------------------------------------- */
.cew-wa {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100; /* above the overlay header (50) and page content */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 1px solid #B08B56;
  border-radius: 999px;
  background-color: #2A2D1C;
  color: #F7F0E5;
  fill: #F7F0E5;
  box-shadow: 0 8px 24px rgba(42, 45, 28, 0.18);
  text-decoration: none;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cew-wa svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.cew-wa i {
  font-size: 30px;
  line-height: 1;
}

.cew-wa:hover {
  transform: translateY(-2px);
}

.cew-wa:focus-visible {
  outline: 3px solid #B08B56;
  outline-offset: 3px;
}

/* Hidden until the trigger section is in view (JS adds .is-armed, so the
   button never disappears when the script does not run). */
.cew-wa.is-armed:not(.is-visible) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

@media (max-width: 767px) {
  .cew-wa {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .cew-wa {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Map Viewer — design frame "Location map — enlarged" (1440×900 / 390×844):
   88px olive toolbar (title cream 16/27 + instruction brass 13/21 | rust
   "Back" 144×56, mobile 110), then the map artwork at full resolution on
   olive, scrollable both ways. `dialog.cew-map .cew-map__bar .cew-map__back`
   (0,3,1) beats the Kit's `.elementor-kit-N button` / `button:focus` styles.
   --------------------------------------------------------------------------- */
.cew-map {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--e-global-color-olive, #2A2D1C);
  color: var(--e-global-color-cream, #F7F0E5);
}

.cew-map[open] {
  display: flex;
  flex-direction: column;
}

.cew-map::backdrop {
  background: #2A2D1C;
}

dialog.cew-map .cew-map__bar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-right, 0px)) 16px calc(24px + env(safe-area-inset-left, 0px));
  background: var(--e-global-color-olive, #2A2D1C);
}

dialog.cew-map .cew-map__heading {
  min-width: 0;
}

dialog.cew-map .cew-map__title {
  margin: 0;
  color: var(--e-global-color-cream, #F7F0E5);
  font: 400 16px/27px "Montserrat", sans-serif;
}

dialog.cew-map .cew-map__hint {
  margin: 0;
  color: var(--e-global-color-secondary, #B08B56);
  font: 400 13px/21px "Montserrat", sans-serif;
}

dialog.cew-map .cew-map__bar .cew-map__back {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: 144px;
  min-height: 56px;
  margin: 0;
  padding: 0 24px;
  border: 0;
  border-radius: 0;
  background: var(--e-global-color-rust, #9A3621);
  color: var(--e-global-color-accent, #F7F0E5);
  font: 400 14px/22px "Montserrat", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* The dialog focuses Back when it opens: keep the default rust there (the
   Kit's own button:focus rule would turn it espresso); espresso on hover. */
dialog.cew-map .cew-map__bar .cew-map__back:focus {
  background: var(--e-global-color-rust, #9A3621);
  color: var(--e-global-color-accent, #F7F0E5);
}

dialog.cew-map .cew-map__bar .cew-map__back:hover {
  background: var(--e-global-color-espresso, #331F14);
  color: var(--e-global-color-accent, #F7F0E5);
}

dialog.cew-map .cew-map__bar .cew-map__back:focus-visible {
  outline: 3px solid var(--e-global-color-secondary, #B08B56);
  outline-offset: 0;
}

dialog.cew-map .cew-map__scroll {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--e-global-color-olive, #2A2D1C);
}

dialog.cew-map .cew-map__scroll:focus-visible {
  outline: 3px solid var(--e-global-color-secondary, #B08B56);
  outline-offset: -3px;
}

dialog.cew-map .cew-map__scroll img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
}

html.cew-map-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  dialog.cew-map .cew-map__bar .cew-map__back {
    width: 110px;
  }
}

.cew-map-placeholder {
  padding: 16px;
  border: 1px dashed var(--e-global-color-secondary, #B08B56);
  color: inherit;
  font: 400 13px/21px "Montserrat", sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  dialog.cew-map .cew-map__bar .cew-map__back {
    transition: none;
  }
}
