/* ==========================================================================
   Dubai Interactive Map - TopAddress.ae Replica
   Theme & Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Jost:wght@300;400;500;600;700;800&family=Montserrat:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --primary-gold: #e2ca8d;
  --gold-hover: #edd9a3;
  --gold-dark: #b89f5f;
  --bg-dark: #0a0c10;
  --card-dark: #141720;
  --surface-dark: rgba(22, 26, 35, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.12);
  --text-main: #f5f6fa;
  --text-muted: #9ba1b0;
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Jost', sans-serif;
}

/* Scoped Box-Sizing for the Map App */
.map-app-container,
.map-app-container * {
  box-sizing: border-box;
}

/* Ensure Page Scrolling Works Seamlessly */
html {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
}

/* ==========================================================================
   Main Map Container - Full Width with Margins & Vertical Spacing
   ========================================================================== */
.map-app-container {
  /* Break out to full viewport width with 25px - 30px side margins */
  width: calc(100vw - 60px) !important;
  max-width: calc(100vw - 60px) !important;
  margin-left: calc(50% - 50vw + 30px) !important;
  margin-right: calc(50% - 50vw + 30px) !important;
  
  /* Top and bottom margins so page content can be scrolled easily */
  margin-top: 25px !important;
  margin-bottom: 30px !important;

  height: var(--desktop-map-height, min(850px, 85vh));
  min-height: 550px;
  padding: 0 !important;
  display: flex;
  background-color: transparent;
  position: relative;
  border-radius: 20px;
}

@media (max-width: 1024px) {
  .map-app-container {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: calc(50% - 50vw + 20px) !important;
    margin-right: calc(50% - 50vw + 20px) !important;
    margin-top: 18px !important;
    margin-bottom: 22px !important;
    height: 75vh !important;
    min-height: 480px !important;
    max-height: 650px !important;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  .map-app-container {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    margin-left: calc(50% - 50vw + 12px) !important;
    margin-right: calc(50% - 50vw + 12px) !important;
    margin-top: 14px !important;
    margin-bottom: 18px !important;
    height: 70vh !important;
    min-height: 440px !important;
    max-height: 580px !important;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .map-app-container {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin-left: calc(50% - 50vw + 8px) !important;
    margin-right: calc(50% - 50vw + 8px) !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
    height: 65vh !important;
    min-height: 380px !important;
    max-height: 500px !important;
    border-radius: 12px;
  }
}

.districts_map_container {
  position: relative;
  width: 100% !important;
  height: 100% !important;
  border-radius: inherit;
  overflow: hidden;
  background: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
}

#districts_map {
  width: 100% !important;
  height: 100% !important;
  background: #0b0d12;
}

/* Zoom Message Overlay (Matching Screenshot Exactly) */
.districts_map_container_zoom_message {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 1500;
  font-size: 24px;
  font-weight: 400;
  font-family: var(--font-main);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
  padding: 30px;
  box-sizing: border-box;
}

.districts_map_container.no_zoom .districts_map_container_zoom_message {
  opacity: 0;
  visibility: hidden;
}

/* Switcher Button (Top Left) */
.districts_map_switcher {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: rgba(18, 22, 32, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2ca8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 24px 24px;
  background-position: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(226, 202, 141, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.districts_map_switcher.relief {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2ca8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

.districts_map_switcher:hover {
  transform: scale(1.06);
  border-color: var(--primary-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* Custom Styled Leaflet Zoom Controls */
.leaflet-left .leaflet-control {
  margin: 72px 0 0 14px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
  border-radius: 6px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: #ffffff !important;
  color: #111111 !important;
  border-bottom: 1px solid #e0e0e0 !important;
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 18px !important;
  font-weight: bold !important;
  transition: all 0.2s ease !important;
}

.leaflet-bar a:hover {
  background-color: var(--primary-gold) !important;
  color: #000000 !important;
}

/* Right Filter Sidebar (Vertical Floating Pill) */
.global_uae_map_filter {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.global_uae_map_filter_checkbox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.global_uae_map_filter_checkbox_icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f1115;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1c1f28;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.global_uae_map_filter_checkbox_icon svg {
  width: 17px;
  height: 17px;
}

.global_uae_map_filter_checkbox_icon path {
  fill: var(--primary-gold);
  transition: fill 0.22s ease;
}

.global_uae_map_filter_checkbox:hover .global_uae_map_filter_checkbox_icon {
  transform: scale(1.08);
}

.global_uae_map_filter_checkbox.active .global_uae_map_filter_checkbox_icon {
  background: var(--primary-gold);
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(226, 202, 141, 0.5);
}

.global_uae_map_filter_checkbox.active .global_uae_map_filter_checkbox_icon path {
  fill: #0c0d11 !important;
}

/* Tooltip Sliding Label */
.global_uae_map_filter_checkbox_label {
  position: absolute;
  right: calc(100% + 12px);
  background: rgba(16, 18, 24, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f2f6;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.global_uae_map_filter_checkbox:hover .global_uae_map_filter_checkbox_label {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   District Markers (Matching Screenshot Look)
   ========================================================================== */
body .map_district {
  width: auto !important;
  height: auto !important;
  z-index: 850 !important;
}

.map_district:hover {
  z-index: 999 !important;
}

.district-map-icon {
  display: inline-block;
  background: rgba(35, 38, 46, 0.88);
  backdrop-filter: blur(6px);
  color: #f8f9fa;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 500;
  padding: 3.5px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.district-map-icon:hover,
.district-map-icon.active {
  background: var(--primary-gold);
  color: #0b0c10;
  font-weight: 600;
  border-color: #fff;
  box-shadow: 0 6px 20px rgba(226, 202, 141, 0.6);
  transform: translate(-50%, -50%) scale(1.08);
}

/* ==========================================================================
   Attraction Markers & Icons
   ========================================================================== */
body .attraction_icon {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  background: #090a0e;
  border: 1.5px solid var(--primary-gold);
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 800;
}

.attraction_icon.hidden {
  display: none !important;
}

.attraction_icon svg {
  width: 13px;
  height: 13px;
  fill: var(--primary-gold);
  transition: fill 0.2s ease;
}

.attraction_icon:hover,
.attraction_icon.active {
  background: var(--primary-gold) !important;
  border-color: #ffffff;
  transform: scale(1.28);
  box-shadow: 0 0 16px rgba(226, 202, 141, 0.9);
  z-index: 1200 !important;
}

.attraction_icon:hover svg,
.attraction_icon.active svg,
.attraction_icon:hover path,
.attraction_icon.active path {
  fill: #0a0c10 !important;
}

/* Attraction Card Tooltip */
.attraction_icon_block {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  width: 280px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1300;
  pointer-events: none;
  color: #111;
}

.attraction_icon.active .attraction_icon_block {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.attraction_icon_block_picture {
  display: block;
  height: 130px;
  width: 100%;
  background: #20242e;
  overflow: hidden;
  position: relative;
}

.attraction_icon_block_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attraction_icon_content {
  padding: 12px 14px 14px;
}

.attraction_icon_type_tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.attraction_icon_title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #0e1014;
  line-height: 1.3;
}

.attraction_icon_block_close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.attraction_icon_block_close:hover {
  background: #000;
}

/* Arrow Tip */
.attraction_icon_block::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

/* ==========================================================================
   Emirate Level Polygons & Labels (Zoom <= 11)
   ========================================================================== */
.emirate_polygon {
  stroke: var(--primary-gold);
  stroke-width: 1.8;
  fill: var(--primary-gold);
  fill-opacity: 0.18;
  transition: all 0.3s ease;
}

.emirate_polygon:hover {
  fill-opacity: 0.32;
  stroke-width: 2.5;
}

.emirate_icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.emirate_icon_title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(14, 16, 22, 0.7);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(226, 202, 141, 0.4);
}

/* ==========================================================================
   Leaflet Custom Popup (District Click)
   ========================================================================== */
.leaflet-popup-content-wrapper {
  background: rgba(16, 19, 26, 0.96) !important;
  backdrop-filter: blur(14px);
  color: #fff !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 300px !important;
}

.leaflet-popup-tip {
  background: rgba(16, 19, 26, 0.96) !important;
}

.bind-box {
  display: flex;
  flex-direction: column;
}

.bind-image {
  display: block;
  height: 160px;
  overflow: hidden;
  position: relative;
  background: #1e222d;
}

.bind-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.bind-image:hover img {
  transform: scale(1.06);
}

.bind-box-container {
  padding: 14px 16px 16px;
}

.district-map-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.district-map-link {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

.district-map-link:hover {
  color: var(--primary-gold);
}

.district-map-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.district-map-min-price {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 0.3px;
  font-family: var(--font-main);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Custom Tooltip matching Screenshot exactly: AED 2.890M - 15 M+ */
.dubai-price-tooltip {
  background: rgba(14, 16, 22, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(226, 202, 141, 0.5) !important;
  color: var(--primary-gold) !important;
  font-family: var(--font-main) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.4px !important;
  padding: 5px 12px !important;
  border-radius: 7px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.65) !important;
  white-space: nowrap !important;
}

.dubai-price-tooltip::before {
  border-top-color: rgba(14, 16, 22, 0.95) !important;
}

.district-badge-price {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 0.2px;
  margin-top: 1px;
}

.district-explore-btn {
  background: rgba(226, 202, 141, 0.15);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.district-explore-btn:hover {
  background: var(--primary-gold);
  color: #0c0d11;
}

/* ==========================================================================
   Dubai Communities Drawer & Grid (Explore Section)
   ========================================================================== */
.communities-section {
  max-width: 1600px;
  margin: 0 auto 60px;
  padding: 0 32px;
}

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

.section-title {
  font-size: 24px;
  font-weight: 700;
}

.section-count {
  color: var(--text-muted);
  font-size: 15px;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.district-card {
  background: var(--card-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.district-card:hover {
  transform: translateY(-5px);
  border-color: rgba(226, 202, 141, 0.4);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.district-card-img-holder {
  height: 180px;
  overflow: hidden;
  position: relative;
  background: #1a1e28;
}

.district-card-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.district-card:hover .district-card-img-holder img {
  transform: scale(1.08);
}

.district-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(6px);
  color: var(--primary-gold);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.district-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.district-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
}

.district-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.district-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  margin-top: auto;
}

.district-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-gold);
}

.district-card-action {
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.district-card:hover .district-card-action {
  color: var(--primary-gold);
}

/* ==========================================================================
   Admin Quick Add Button & Modal
   ========================================================================== */
.dubai-map-admin-quick-add {
  position: absolute;
  top: 24px;
  left: 80px;
  z-index: 1000;
  background: rgba(18, 22, 32, 0.88);
  backdrop-filter: blur(12px);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
}

.dubai-map-admin-quick-add:hover,
.dubai-map-admin-quick-add.active {
  background: var(--primary-gold);
  color: #0b0d12;
  box-shadow: 0 0 16px rgba(226, 202, 141, 0.6);
}

.dubai-map-modal-backdrop {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
}

.dubai-map-modal-backdrop.open {
  display: flex;
}

.dubai-map-modal {
  background: #141720;
  border: 1px solid rgba(226, 202, 141, 0.4);
  border-radius: 14px;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  color: #f1f5f9;
  font-family: var(--font-main);
  animation: dubaiFadeIn 0.25s ease;
}

@keyframes dubaiFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dubai-map-modal-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dubai-map-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-gold);
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.close-modal-btn:hover {
  color: #fff;
}

.dubai-map-modal-body {
  padding: 20px;
}

.modal-hint {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 6px;
}

.dubai-map-modal-body .form-group {
  margin-bottom: 12px;
}

.dubai-map-modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  margin-bottom: 4px;
}

.dubai-map-modal-body input {
  width: 100%;
  background: #0d0f15;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  color: #f8fafc;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}

.dubai-map-modal-body input:focus {
  border-color: var(--primary-gold);
}

.dubai-map-modal-footer {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dubai-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.dubai-btn-primary {
  background: var(--primary-gold);
  border: none;
  color: #0d0f15;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.dubai-btn-primary:hover {
  background: var(--gold-hover);
}

/* ==========================================================================
   Full Responsive Rules for Tablet and Mobile Devices
   ========================================================================== */
@media (max-width: 768px) {
  /* Filter Bar - Responsive Dock at bottom of map */
  .global_uae_map_filter {
    position: absolute;
    right: 10px;
    top: auto;
    bottom: 12px;
    transform: none;
    flex-direction: row;
    padding: 4px 6px;
    border-radius: 20px;
    gap: 6px;
    max-width: calc(100% - 20px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  }

  .global_uae_map_filter::-webkit-scrollbar {
    display: none;
  }

  .global_uae_map_filter_checkbox_icon {
    width: 28px;
    height: 28px;
  }

  .global_uae_map_filter_checkbox_icon svg {
    width: 14px;
    height: 14px;
  }

  .global_uae_map_filter_checkbox_label {
    display: none !important;
  }

  /* Zoom controls on mobile */
  .leaflet-left .leaflet-control {
    margin: 12px 0 0 10px !important;
  }

  .leaflet-bar a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 16px !important;
  }

  /* Switcher button on mobile */
  .districts_map_switcher {
    top: 12px;
    right: 12px;
    left: auto;
    width: 38px;
    height: 38px;
  }

  /* Admin quick add pin on mobile */
  .dubai-map-admin-quick-add {
    top: 12px;
    left: 54px;
    padding: 5px 9px;
    font-size: 11px;
    border-radius: 6px;
  }

  /* Hide mouse wheel zoom hint on touch devices */
  .districts_map_container_zoom_message {
    display: none !important;
  }

  /* District badges on mobile */
  .district-map-icon {
    font-size: 11.5px;
    padding: 2.5px 7px;
    border-radius: 4px;
  }

  .district-badge-price {
    font-size: 9px;
  }

  /* Popup card on mobile */
  .leaflet-popup-content-wrapper {
    max-width: 86vw !important;
    border-radius: 12px !important;
  }

  .leaflet-popup-content {
    width: 250px !important;
    max-width: 86vw !important;
  }

  .bind-image {
    height: 120px;
  }

  .bind-box-container {
    padding: 10px 12px 12px;
  }

  .district-map-title {
    font-size: 15px;
    margin-bottom: 4px;
  }

  .district-map-min-price {
    font-size: 13px;
  }

  .district-explore-btn {
    padding: 4px 9px;
    font-size: 11px;
  }

  /* Admin Modal on mobile */
  .dubai-map-modal {
    width: 95%;
    max-width: 360px;
  }

  .dubai-map-modal-body {
    padding: 14px;
  }
}



/* ========================================================================== 
   v1.3.0 Custom Design Settings
   Values are injected per map instance as --dm-* variables.
   ========================================================================== */
.map-app-container {
  --primary-gold: var(--dm-primary, #e2ca8d);
  --gold-hover: var(--dm-primary-hover, #edd9a3);
  --gold-dark: var(--dm-primary-dark, #b89f5f);
  --text-main: var(--dm-text, #f5f6fa);
  --text-muted: var(--dm-muted, #9ba1b0);
  --card-dark: var(--dm-card, #141720);
  --surface-dark: var(--dm-surface, rgba(22,26,35,.85));
  --font-main: var(--dm-font, 'Outfit'), -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: var(--dm-heading-font, 'Jost'), sans-serif;
}
.map-app-container .districts_map_container { border-color: var(--dm-border, #fff); border-width: var(--dm-border-width, 1px); box-shadow: var(--dm-map-shadow, 0 16px 50px rgba(0,0,0,.7)); }
.map-app-container .district-map-icon { color: var(--dm-text, #f8f9fa); font-size: var(--dm-label-size, 13.5px); padding: var(--dm-label-padding, 3.5px 9px); border-radius: var(--dm-badge-radius, 5px); }
.map-app-container .district-map-icon:hover,.map-app-container .district-map-icon.active { background: var(--dm-primary, #e2ca8d); color: var(--dm-button-hover-text, #0b0c10); }
.map-app-container .global_uae_map_filter_checkbox_label { color: var(--dm-text, #f1f2f6); font-size: var(--dm-filter-size, 13px); }
.map-app-container .global_uae_map_filter_checkbox_icon path { fill: var(--dm-filter-icon, #e2ca8d); }
.map-app-container .global_uae_map_filter_checkbox.active .global_uae_map_filter_checkbox_icon { background: var(--dm-primary, #e2ca8d); border-color: var(--dm-primary, #e2ca8d); }
.map-app-container .global_uae_map_filter_checkbox.active .global_uae_map_filter_checkbox_icon path { fill: var(--dm-filter-icon-active, #0c0d11) !important; }
.map-app-container .district-map-title { color: var(--dm-text, #fff); font-family: var(--dm-heading-font, 'Jost'), sans-serif; font-size: var(--dm-title-size, 18px); line-height: var(--dm-title-line, 1.3); font-weight: var(--dm-heading-weight, 600); }
.map-app-container .district-map-link { color: var(--dm-link, #fff); }
.map-app-container .district-map-link:hover { color: var(--dm-link-hover, #e2ca8d); }
.map-app-container .district-map-min-price,.map-app-container .district-badge-price { color: var(--dm-price, #e2ca8d); font-size: var(--dm-price-size, 14.5px); }
.map-app-container .district-badge-price { font-size: var(--dm-badge-size, 10px); }
.map-app-container .district-explore-btn { color: var(--dm-button-text, #e2ca8d); border-color: var(--dm-primary, #e2ca8d); border-radius: var(--dm-button-radius, 8px); padding: var(--dm-button-padding, 6px 12px); font-size: var(--dm-button-size, 12px); }
.map-app-container .district-explore-btn:hover { background: var(--dm-primary, #e2ca8d); color: var(--dm-button-hover-text, #0c0d11); }
.map-app-container .leaflet-popup-content-wrapper { background: var(--dm-popup, #10131a) !important; border-radius: var(--dm-popup-radius, 16px) !important; }
.map-app-container .leaflet-popup-tip { background: var(--dm-popup, #10131a) !important; }
.map-app-container .leaflet-popup-content { width: var(--dm-popup-width, 300px) !important; }
.map-app-container .bind-image { height: var(--dm-popup-image-height, 160px); }
.map-app-container .district-card { background: var(--dm-card, #141720); border-radius: var(--dm-card-radius, 16px); box-shadow: var(--dm-card-shadow, 0 14px 30px rgba(0,0,0,.4)); }
.map-app-container .district-card-title { font-family: var(--dm-heading-font, 'Jost'), sans-serif; font-weight: var(--dm-heading-weight, 600); color: var(--dm-text, #f5f6fa); }
.map-app-container .district-card-price { color: var(--dm-price, #e2ca8d); }
.map-app-container .section-title,.map-app-container .district-card-body,.map-app-container .section-count { font-family: var(--dm-font, 'Outfit'), sans-serif; }
.map-app-container .districts_map_container_zoom_message { font-family: var(--dm-font, 'Outfit'), sans-serif; color: var(--dm-text, #fff); }
.map-app-container.no_zoom_message_setting .districts_map_container_zoom_message { display:none !important; }
.map-app-container .dm-hidden-setting { display:none !important; }
.map-app-container .no_filters_setting .global_uae_map_filter { display:none !important; }
.map-app-container .no_attractions_setting .attraction_icon { display:none !important; }
.map-app-container .leaflet-bar a:hover { background-color: var(--dm-primary, #e2ca8d) !important; }
