/* Landing map — zoom controls + property preview card */

.map-container {
  cursor: pointer;
}

.map-container .pd-map-zoom,
.map-container button,
.map-container a,
.map-container [role="button"] {
  cursor: default;
}

.pd-map-wrap {
  position: relative;
  height: 100%;
  width: 100%;
}


.pd-map-zoom {
  position: absolute;
  /* Pushed well below Google's native fullscreen button (RIGHT_TOP) so the
     fullscreen / map-type / street-view controls remain clickable. Before
     this they were hidden underneath our custom zoom stack and only the
     +/- buttons worked. */
  top: 110px;
  right: 12px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pd-map-zoom__btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #fff;
  color: var(--pd-brand-teal, #1e5f7a);
  box-shadow: 0 2px 8px rgba(26, 43, 60, 0.15);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.pd-map-zoom__btn:hover {
  background: #f4f7f9;
}

.pd-map-zoom__btn--locate {
  margin-top: 4px;
  color: #1a73e8;
}

.pd-map-zoom__btn--locate.is-loading {
  opacity: 0.6;
  cursor: progress;
}

.pd-map-zoom__btn--locate.is-error {
  color: #c0392b;
}

.pd-map-info {
  font-family: inherit;
  max-width: 280px;
  overflow: hidden;
}

.pd-map-info__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 100%;
  height: 108px;
  overflow: hidden;
  background: #eef2f6;
  text-decoration: none;
}

.pd-map-info__gallery:has(.pd-map-info__thumb:only-child) {
  grid-template-columns: 1fr;
}

.pd-map-info__thumb {
  height: 108px;
  overflow: hidden;
  background: #dde4ea;
}

.pd-map-info__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.pd-map-info__gallery:hover .pd-map-info__thumb img {
  transform: scale(1.03);
}

.pd-map-info__body {
  padding: 0.65rem 0.7rem 0.75rem;
}

.pd-map-info__title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pd-map-info__pid {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  color: #5c6b7a;
}

.pd-map-info__pid strong {
  color: #1a2b3c;
}

.pd-map-info__meta {
  margin: 0 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.pd-map-info__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  color: #164a61;
  background: #e8f2f7;
  border: 1px solid #cfe0ea;
}

.pd-map-info__loc {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: #5c6b7a;
}

.pd-map-info__loc i {
  margin-right: 0.2rem;
  color: var(--pd-brand-orange, #eb8944);
}

.pd-map-info__price {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pd-brand-teal, #1e5f7a);
}

.pd-map-info__btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    var(--pd-brand-orange, #eb8944) 0%,
    #e07a38 100%
  );
}

.pd-map-info__btn:hover {
  color: #fff;
  opacity: 0.95;
}

.pd-map-info__btn--disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Agent profile map popup only (other pages unchanged) */
.pd-map-info--agent-profile {
  position: relative;
  max-width: 220px;
  font-family: "Inter", "Poppins", sans-serif;
}

.pd-map-info--agent-profile .pd-map-info__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
  padding: 0;
  line-height: 1;
}

.pd-map-info--agent-profile .pd-map-info__close:hover {
  background: #fff;
  color: #111827;
}

.pd-map-info--agent-profile .pd-map-info__close i {
  font-size: 12px;
}

.pd-map-info--agent-profile .pd-map-info__thumb {
  width: 100%;
  height: 100px;
  border-radius: 8px 8px 0 0;
}

.pd-map-info--agent-profile .pd-map-info__body {
  padding: 10px 12px 12px;
}

.pd-map-info--agent-profile .pd-map-info__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #111827;
}

.pd-map-info--agent-profile .pd-map-info__price {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0d6efd;
}

.pd-map-info--agent-profile .pd-map-info__meta {
  margin: 0 0 10px;
}

.pd-map-info--agent-profile .pd-map-info__tag--category {
  background: #ff6b35;
  color: #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  padding: 4px 8px;
}

.pd-map-info--agent-profile .pd-map-info__btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff !important;
  background: #164a61;
  border-radius: 6px;
  text-decoration: none;
  background-image: none;
  cursor: pointer !important;
}

.pd-map-info--agent-profile .pd-map-info__btn:hover {
  background: #123d51;
  opacity: 1;
  color: #fff !important;
  cursor: pointer !important;
}

.pd-map-info--agent-profile .pd-map-info__close {
  cursor: pointer !important;
}

@media (max-width: 480px) {
  .pd-map-info {
    max-width: 240px;
  }

  .pd-map-info__gallery,
  .pd-map-info__thumb {
    height: 92px;
  }

  .pd-map-info--agent-profile {
    max-width: 200px;
  }
}

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.18) !important;
}

.gm-style .gm-style-iw-d {
  overflow: hidden !important;
  max-height: none !important;
}

.gm-style .gm-style-iw-chr {
  display: none !important;
}

.pd-map-error {
  max-width: 320px;
}

.pd-map-error h6 {
  color: #1a2b3c;
}
