/* One-property map view (property-map.js), laid out like Booking.com's hotel
   map: full-screen map, price tags for every property, the picked one in
   bright blue, its card floating top-left and "Close map" top-right. */

.pmap[hidden] { display: none; }

.pmap {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: #e6edf5;
  font-family: Jost, sans-serif;
}

.pmap__canvas {
  position: absolute;
  inset: 0;
}

/* ---------- Close map ---------- */
.pmap__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #1a1a1a;
  font: 500 15px/1 Jost, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  cursor: pointer;
}
.pmap__close:hover { background: #f2f2f2; }
.pmap__close-x { font-size: 22px; line-height: 1; }

/* ---------- Floating left column ---------- */
.pmap__side {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: 360px;
  max-width: 100%;
  overflow-y: auto;
  pointer-events: none;
}
.pmap__side[hidden] { display: none; }
.pmap__side > * { pointer-events: auto; }

.pmap-card {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
}

.pmap-card__head {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 16px 40px 16px 12px;
}

.pmap-card__photo {
  flex: none;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 6px;
}
.pmap-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pmap-card__info { min-width: 0; }

.pmap-card__name {
  display: block;
  color: #006ce4;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.pmap-card__name:hover { text-decoration: underline; }

.pmap-card__stars {
  margin-top: 3px;
  color: #febb02;
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.pmap-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.pmap-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border-radius: 6px 6px 6px 0;
  background: #003b95;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.pmap-card__rating-text { display: grid; line-height: 1.25; }
.pmap-card__rating-text strong { color: #1a1a1a; font-size: 15px; font-weight: 500; }
.pmap-card__rating-text span { color: #595959; font-size: 12px; }

.pmap-card__hide {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #1a1a1a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pmap-card__hide:hover { background: #f2f2f2; }

.pmap-card__price {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 12px;
  padding: 16px 0;
  border-top: 1px solid #e7e7e7;
}

.pmap-card__price-label { color: #1a1a1a; font-size: 15px; font-weight: 500; }
.pmap-card__stay { margin-top: 2px; color: #595959; font-size: 13px; }
.pmap-card__amount { margin-top: 4px; color: #1a1a1a; font-size: 21px; font-weight: 600; line-height: 1.2; }
.pmap-card__unit { margin-top: 2px; color: #595959; font-size: 12px; }

.pmap-card__view {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 4px;
  background: #006ce4;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.pmap-card__view::after { content: "›"; font-size: 20px; line-height: 1; }
.pmap-card__view:hover { background: #0057b8; }

.pmap-card__address {
  margin: 0 12px;
  padding: 14px 0 16px;
  border-top: 1px solid #e7e7e7;
  color: #1a1a1a;
  font-size: 13px;
  line-height: 1.5;
}
.pmap-card__distance { margin-top: 2px; color: #006ce4; font-weight: 500; }

/* ---------- Top attractions ---------- */
.pmap-attractions {
  margin: 10px 8px;
  padding: 14px 14px 6px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .16);
}
.pmap-attractions h3 { margin: 0 0 8px; color: #1a1a1a; font-size: 15px; font-weight: 600; }
.pmap-attractions ul { margin: 0; padding: 0; list-style: none; }
.pmap-attractions li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  line-height: 1.35;
}
.pmap-attractions__name { color: #1a1a1a; }
.pmap-attractions__note {
  flex: none;
  max-width: 45%;
  overflow: hidden;
  color: #595959;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------- Price tags ---------- */
.pmap-pin { background: transparent; border: 0; }

.pmap-pin__tag {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border: 1px solid #fff;
  border-radius: 4px;
  background: #003b95;
  color: #fff;
  font: 600 13px/1.2 Jost, sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
  transform: translate(-50%, calc(-100% - 7px));
  cursor: pointer;
  transition: background .12s ease;
}

/* The little pointer under each tag marks the exact spot. */
.pmap-pin__tag::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
}

.pmap-pin:hover { z-index: 999 !important; }
.pmap-pin:hover .pmap-pin__tag { background: #006ce4; }

.pmap-pin.is-active .pmap-pin__tag {
  padding: 6px 10px;
  background: #006ce4;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.pmap-pin__bed { width: 18px; height: 18px; fill: currentColor; }

.pmap .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; }

/* ---------- Phones: card docks to the bottom ---------- */
@media (max-width: 860px) {
  .pmap__side {
    top: auto;
    width: 100%;
    max-height: 55vh;
  }
  .pmap-card { border-radius: 12px 12px 0 0; }
  .pmap-attractions { display: none; }
}
