.crewvip-map-shell {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 84px);
  background: #eef2f6;
  overflow: hidden;
}

.crewvip-fast-map {
  width: 100%;
  min-height: calc(100vh - 84px);
  height: 760px;
  background: #dce5ed;
  z-index: 1;
}

body.page-id-581 {
  --crewvip-map-header-height: 98px;
  overflow: hidden;
}

body.page-id-581 .banner,
body.page-id-581 footer,
body.page-id-581 .xs_social_share_widget.after_content,
body.page-id-581 .gtranslate_wrapper,
body.page-id-581 .grecaptcha-badge,
body.page-id-581 .to-top {
  display: none !important;
}

body.page-id-581 iframe[src*="recaptcha"] {
  display: none !important;
}

body.page-id-581 .header {
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  right: 0;
  left: 0;
  z-index: 1100;
  padding: 0 20px !important;
}

body.page-id-581 .main-menu-area,
body.page-id-581 .main-menu-area.fixed-top,
body.page-id-581 .main-menu-area.fixed-menu {
  position: fixed !important;
  top: var(--wp-admin--admin-bar--height, 0px) !important;
  right: 20px;
  left: 20px;
  z-index: 1100;
  padding: 0 20px !important;
  background: rgba(18, 39, 75, 0.96);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.18);
}

body.page-id-581 .main-menu-area.fixed-menu .navbar-brand1 {
  display: block;
}

body.page-id-581 .main-menu-area.fixed-menu .navbar-brand2 {
  display: none;
}

body.page-id-581 .main-menu-area.fixed-menu .nav-menu li a,
body.page-id-581 .main-menu-area.fixed-menu .cart-open .navbar-shopping-bag > i {
  color: #fff;
}

body.page-id-581 .main-menu-area.fixed-menu .nav-menu li a span:after {
  background-color: #fff;
}

body.page-id-581 .crewvip-map-shell {
  position: fixed;
  inset: var(--wp-admin--admin-bar--height, 0px) 0 0;
  height: auto;
  min-height: 0;
}

body.page-id-581 .crewvip-fast-map {
  height: 100%;
  min-height: 100%;
}

body.page-id-581 .crewvip-map-toolbar {
  top: calc(var(--crewvip-map-header-height) + 14px);
}

body.page-id-581 .leaflet-top.leaflet-right {
  top: calc(var(--crewvip-map-header-height) + 14px);
  right: 18px;
}

.crewvip-map-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 500;
  width: min(380px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid rgba(18, 39, 75, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.18);
  color: #111827;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.crewvip-map-toolbar * {
  box-sizing: border-box;
}

.crewvip-map-toolbar-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.crewvip-map-kicker {
  margin: 0 0 4px;
  color: #be9d69;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.crewvip-map-toolbar h1 {
  margin: 0;
  color: #12274b;
  font-size: 22px;
  line-height: 1.16;
}

.crewvip-map-icon-button,
.crewvip-map-search button {
  border: 0;
  border-radius: 6px;
  background: #12274b;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.crewvip-map-icon-button:hover,
.crewvip-map-search button:hover {
  background: #be9d69;
  transform: translateY(-1px);
}

.crewvip-map-icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 23px;
  line-height: 1;
}

.crewvip-map-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 0 0 10px;
}

.crewvip-map-search input {
  min-width: 0;
  width: 100%;
  border: 1px solid #d3d9e3;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
  outline: 0;
}

.crewvip-map-search input {
  padding: 11px 12px;
}

.crewvip-map-search input:focus {
  border-color: #12274b;
  box-shadow: 0 0 0 3px rgba(18, 39, 75, 0.12);
}

.crewvip-map-search button {
  padding: 0 14px;
}

.crewvip-map-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.crewvip-map-stats span {
  padding: 10px;
  border-radius: 6px;
  background: #f6f8fb;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.25;
}

.crewvip-map-stats strong {
  display: block;
  color: #12274b;
  font-size: 18px;
  line-height: 1.2;
}

.crewvip-map-status {
  min-height: 18px;
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.crewvip-map-status[data-tone="ready"] {
  color: #166534;
}

.crewvip-map-status[data-tone="error"] {
  color: #b42318;
}

.crewvip-map-status[data-tone="loading"] {
  color: #12274b;
}

.crewvip-map-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 520;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(18, 39, 75, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.22);
  color: #12274b;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.crewvip-map-loader[data-visible="true"] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.crewvip-map-loader-icon {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(18, 39, 75, 0.18);
  border-top-color: #be9d69;
  border-radius: 50%;
  animation: crewvip-map-spin 0.75s linear infinite;
}

@keyframes crewvip-map-spin {
  to {
    transform: rotate(360deg);
  }
}

.crewvip-deal-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 8px;
  background: #12274b;
  box-shadow: 0 8px 20px rgba(18, 39, 75, 0.28);
  color: #fff;
  transform: rotate(-45deg);
}

.crewvip-deal-marker span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(45deg);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(190, 157, 105, 0.28);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: #be9d69;
  color: #12274b;
  font-weight: 900;
}

.crewvip-map-popup h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
}

.crewvip-map-popup p {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.45;
}

.crewvip-map-discount {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #12274b;
  font-size: 12px;
  font-weight: 800;
}

.leaflet-popup-content {
  margin: 16px;
}

.leaflet-control-zoom a {
  color: #12274b;
}

@media (max-width: 768px) {
  body.page-id-581 {
    --crewvip-map-header-height: 66px;
  }

  body.page-id-581 .header {
    padding: 0 !important;
  }

  body.page-id-581 .main-menu-area,
  body.page-id-581 .main-menu-area.fixed-top,
  body.page-id-581 .main-menu-area.fixed-menu {
    right: 0;
    left: 0;
    padding: 10px 14px !important;
  }

  .crewvip-map-shell,
  .crewvip-fast-map {
    min-height: calc(100vh - 68px);
    height: calc(100vh - 68px);
  }

  .crewvip-map-toolbar {
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    padding: 10px;
    max-height: min(42dvh, 310px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.page-id-581 .crewvip-map-shell,
  body.page-id-581 .crewvip-fast-map {
    height: 100%;
    min-height: 100%;
  }

  body.page-id-581 .crewvip-map-toolbar {
    top: auto;
  }

  body.page-id-581 .leaflet-top.leaflet-right {
    top: calc(var(--crewvip-map-header-height) + 10px);
    right: 10px;
  }

  .crewvip-map-loader {
    top: calc(var(--crewvip-map-header-height) + 78px);
    font-size: 13px;
  }

  .crewvip-map-kicker {
    display: none;
  }

  .crewvip-map-toolbar-head {
    align-items: center;
    margin-bottom: 8px;
  }

  .crewvip-map-toolbar h1 {
    font-size: 15px;
  }

  .crewvip-map-icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 20px;
  }

  .crewvip-map-search {
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 6px;
    margin-bottom: 8px;
  }

  .crewvip-map-search input {
    padding: 9px 10px;
    font-size: 13px;
  }

  .crewvip-map-search button {
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .crewvip-map-stats {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 6px;
  }

  .crewvip-map-stats span {
    padding: 7px 8px;
    font-size: 11px;
  }

  .crewvip-map-stats strong {
    font-size: 16px;
  }

  .crewvip-map-status {
    min-height: 16px;
    font-size: 11px;
  }
}

@media (max-width: 768px) and (max-height: 650px) {
  .crewvip-map-stats {
    display: none;
  }
}
