/* Aqarize property markers, property card and clusters on Google Maps.
   Shared by Pages/aqarize_map, Pages/listing_page and Pages/listing_page_detail (see js/aqarize-map-markers.js). */

/* Property markers (mobile app style): white icon on a dark round badge. */
.aq-marker { position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 1; }
.aq-marker .aq-dot {
   display: flex; align-items: center; justify-content: center;
   width: 40px; height: 40px; border-radius: 50%;
   background: rgba(52, 52, 52, 0.88); border: 2px solid #fff;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); transition: transform .15s, background .15s;
}
.aq-marker .aq-dot img { width: 24px; height: 24px; object-fit: contain; }
.aq-marker:hover .aq-dot { transform: scale(1.12); }
.aq-marker.is-active { z-index: 3; }
.aq-marker.is-active .aq-dot { width: 50px; height: 50px; background: #b4532e; border-width: 3px; }
.aq-marker.is-active .aq-dot img { width: 28px; height: 28px; }
.aq-marker .aq-price {
   display: none; position: absolute; top: 50%; left: calc(100% + 8px); transform: translateY(-50%);
   background: #fff; color: #111; font-weight: 700; font-size: 15px; white-space: nowrap;
   padding: 8px 16px; border-radius: 24px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.aq-marker .aq-price small { font-size: 12px; font-weight: 600; }
.aq-marker.is-active .aq-price { display: block; }
.arabicbody .aq-marker .aq-price { left: auto; right: calc(100% + 8px); }

/* Cluster badge: number of properties grouped at this zoom level. */
.aq-cluster {
   position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 2;
   display: flex; align-items: center; justify-content: center;
   width: 44px; height: 44px; border-radius: 50%;
   background: #b4532e; color: #fff; font-weight: 700; font-size: 15px;
   border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(180, 83, 46, 0.35), 0 3px 10px rgba(0, 0, 0, 0.4);
   transition: transform .15s;
}
.aq-cluster:hover { transform: translate(-50%, -50%) scale(1.1); }
.aq-cluster-md { width: 52px; height: 52px; font-size: 16px; }
.aq-cluster-lg { width: 62px; height: 62px; font-size: 18px; }

/* Property card shown above the selected marker. */
.aq-card {
   position: absolute; width: 280px; transform: translate(-50%, calc(-100% - 38px));
   background: #fff; border-radius: 22px; padding: 10px; z-index: 5;
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); font-size: 14px; color: #222; cursor: default;
}
.aq-card:after {
   content: ''; position: absolute; left: 50%; bottom: -12px; margin-left: -12px;
   border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 13px solid #fff;
}
.aq-card-img { position: relative; height: 150px; border-radius: 16px; overflow: hidden; background: #eee; }
.aq-card-img > a:first-child img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aq-card .aq-badge {
   position: absolute; top: 10px; left: 10px; background: #b4532e; color: #fff;
   font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 14px;
}
.arabicbody .aq-card .aq-badge { left: auto; right: 10px; }
.aq-card .aq-like {
   position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
   background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.arabicbody .aq-card .aq-like { right: auto; left: 8px; }
.aq-card .aq-like .heart_icon_span, .aq-card .aq-like img { position: static !important; width: 18px !important; height: 18px !important; margin: 0 !important; display: block; }
.aq-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 4px 6px; }
.aq-card-price { font-size: 18px; font-weight: 700; color: #111; white-space: nowrap; }
.aq-card-price small { font-size: 12px; font-weight: 600; color: #555; }
.aq-card-details {
   background: #b4532e; color: #fff !important; border-radius: 18px; padding: 6px 14px;
   font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none !important;
}
.aq-card-details:hover { background: #9a4425; }
.aq-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 4px 4px; color: #8a8a8a; font-size: 13px; }
.aq-card-meta i { color: #a0a0a0; margin-right: 3px; }
