.rentals-page {
  min-height: 100vh;
  background: var(--bg);
}

.rentals-shell {
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 100vh;
}

.rentals-map {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  background: var(--teal-900);
  border-right: 1px solid var(--line);
}

.rentals-map__canvas,
.rentals-map__fallback {
  width: 100%;
  height: 100%;
}

.rentals-map__fallback {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7,33,31,.82) 0 34%, transparent 34%),
    radial-gradient(circle at 62% 42%, #e8dcc2, #cbb98e 70%);
}

.rentals-map__sea {
  position: absolute;
  inset: 0 auto 0 0;
  width: 35%;
  background: #0e3e3c;
}

.rentals-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  overflow: visible;
}

.rentals-pin__dot {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
}

.rentals-pin.is-active .rentals-pin__dot {
  background: #fff;
  border-color: var(--gold);
  transform: scale(1.12);
}

.map-preview {
  --ink: #18181b;
  --ink-soft: #57534e;
  --muted: #a8a29e;
  --rule: #e7e5e0;
  --accent: #2d5d4f;
  --price: #b27338;
  --card-bg: #fff;

  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  z-index: 5;
  width: min(268px, calc(100vw - 44px));
  display: block;
  overflow: hidden;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(20, 20, 20, .04),
    0 10px 30px rgba(20, 20, 20, .1),
    0 30px 60px rgba(20, 20, 20, .08);
  color: var(--ink);
  text-align: left;
  pointer-events: auto;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.map-preview:hover {
  box-shadow:
    0 1px 2px rgba(20, 20, 20, .05),
    0 14px 36px rgba(20, 20, 20, .14),
    0 36px 70px rgba(20, 20, 20, .1);
}

.map-preview::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--card-bg);
}

.pcard__photo {
  position: relative;
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #e7e5e0;
}

.pcard__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}

.pcard__photo img.is-active {
  opacity: 1;
}

.pcard__status {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 54px);
  padding: 4px 8px;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  border-radius: 99px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  line-height: 1.15;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 600;
}

.pcard__save {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.pcard__save svg {
  stroke: var(--ink);
  fill: none;
}

.pcard__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  gap: 5px;
  padding: 5px 8px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pcard__dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.55);
}

.pcard__dot.is-active {
  width: 18px;
  background: #fff;
}

.pcard__body {
  display: block;
  padding: 14px 16px 16px;
}

.pcard__distance {
  display: block;
  margin-bottom: 7px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 600;
}

.pcard__name {
  display: block;
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 400;
}

.pcard__specs {
  display: block;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 600;
}

.pcard__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
}

.pcard__price-amount {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pcard__price-cadence {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
}

.map-preview--google {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: min(268px, calc(100vw - 44px));
  box-shadow: none;
}

.map-preview--google::after {
  display: none;
}

.gm-style .gm-style-iw-c {
  padding: 0 !important;
  background: #fff !important;
  border-radius: 12px !important;
  max-height: none !important;
  box-shadow:
    0 1px 2px rgba(20, 20, 20, .04),
    0 10px 30px rgba(20, 20, 20, .1),
    0 30px 60px rgba(20, 20, 20, .08) !important;
}

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

.gm-style .gm-style-iw-ch,
.gm-style .gm-style-iw-chr {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
}

.gm-style .gm-ui-hover-effect {
  display: none !important;
}

.result-card__meta,
.results-count {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

.rentals-results {
  min-width: 0;
  padding: 28px clamp(20px, 3vw, 42px) 56px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}

.results-head h1 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.02em;
}

.results-search {
  margin-bottom: 24px;
}

.results-search .search {
  box-shadow: none;
}

.results-search .search__row {
  grid-template-columns: 1fr 1.1fr 1fr .8fr auto;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0 4px;
}
.pager__nums { display: flex; align-items: center; gap: 4px; }
.pager__num,
.pager__nav {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line, #d9d4ca);
  background: #fff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink, #1d1b16);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.pager__num:hover:not(.is-active),
.pager__nav:hover:not(:disabled) {
  border-color: #0e3e3c;
  color: #0e3e3c;
}
.pager__num.is-active {
  background: #0e3e3c;
  border-color: #0e3e3c;
  color: #fff;
  cursor: default;
}
.pager__nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pager__gap {
  padding: 0 4px;
  color: var(--muted, #9a958b);
  user-select: none;
}
.pager__summary {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted, #7a766e);
  letter-spacing: 0.02em;
  padding: 8px 0 4px;
}

.result-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  color: inherit;
  min-height: 188px;
}

.result-card:hover,
.result-card.is-active {
  border-color: var(--gold);
  box-shadow: var(--sh-2);
}

.result-card img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
}

.result-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.08;
  font-weight: 500;
}

.result-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.result-card__features span {
  font-size: 12px;
  padding: 4px 8px;
  background: var(--sand);
  border-radius: var(--r-xs);
}

.result-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.result-card__foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.result-card__price {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.empty-results {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

@media (max-width: 1180px) {
  .rentals-shell {
    grid-template-columns: 1fr;
  }

  .rentals-map {
    position: relative;
    top: 0;
    height: 420px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rentals-results {
    padding-top: 32px;
  }

  .results-list {
    grid-template-columns: 1fr;
  }

  .result-card {
    grid-template-columns: minmax(220px, 36%) 1fr;
  }
}

@media (max-width: 760px) {
  .rentals-shell {
    min-height: 0;
  }

  .rentals-map {
    height: min(62vh, 360px);
    min-height: 280px;
  }

  .rentals-results {
    padding: 22px 14px 40px;
  }

  .results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
  }

  .results-head h1 {
    font-size: clamp(32px, 11vw, 44px);
  }

  .results-search {
    margin-bottom: 18px;
  }

  .results-search .search {
    border-radius: 10px;
  }

  .results-search .search__row {
    grid-template-columns: 1fr 1fr;
  }

  .results-search .sf {
    min-height: 70px;
    padding: 14px 16px;
  }

  .results-search .sf__label {
    font-size: 10px;
    letter-spacing: .12em;
  }

  .results-search .sf__value {
    font-size: 14px;
  }

  .results-search .search__chips {
    padding: 12px 14px;
    gap: 8px;
  }

  .results-search .chip {
    min-height: 40px;
  }

  .results-list {
    gap: 14px;
  }

  .result-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 10px;
  }

  .result-card img {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 0;
  }

  .result-card__body {
    padding: 16px;
    gap: 9px;
  }

  .result-card h2 {
    font-size: 25px;
  }

  .result-card__features {
    gap: 5px;
  }

  .result-card__features span {
    font-size: 11px;
    padding: 4px 7px;
  }

  .result-card__specs {
    gap: 8px 12px;
    font-size: 12px;
  }

  .result-card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .result-card__price {
    font-size: 27px;
  }

  .map-preview {
    bottom: calc(100% + 12px);
    width: min(246px, calc(100vw - 34px));
  }

  .pcard__photo {
    height: 118px;
  }

  .pcard__status {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 48px);
    padding: 4px 7px;
    font-size: 8px;
    letter-spacing: .12em;
  }

  .pcard__save {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
  }

  .pcard__dots {
    bottom: 8px;
    padding: 4px 7px;
  }

  .pcard__body {
    padding: 11px 12px 13px;
  }

  .pcard__distance {
    margin-bottom: 6px;
    font-size: 9px;
    letter-spacing: .1em;
  }

  .pcard__name {
    margin-bottom: 9px;
    font-size: 21px;
  }

  .pcard__specs {
    padding-top: 9px;
    font-size: 10px;
  }

  .pcard__price {
    margin-top: 8px;
  }

  .pcard__price-amount {
    font-size: 24px;
  }

  .pcard__price-cadence {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  .rentals-map {
    height: 300px;
    min-height: 260px;
  }

  .results-search .search__row {
    grid-template-columns: 1fr;
  }

  .results-search .sf {
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .results-search .sf:first-child {
    border-top: 0;
  }

  .results-search .search__submit {
    height: 54px;
  }

  .map-preview {
    width: min(226px, calc(100vw - 30px));
  }

  .pcard__photo {
    height: 100px;
  }

  .pcard__body {
    padding: 10px 11px 12px;
  }

  .pcard__distance {
    font-size: 9px;
    letter-spacing: .1em;
  }

  .pcard__name {
    font-size: 19px;
    margin-bottom: 8px;
  }

  .pcard__specs {
    padding-top: 10px;
    font-size: 10px;
  }

  .pcard__price {
    margin-top: 8px;
  }

  .pcard__price-amount {
    font-size: 24px;
  }

  .pcard__price-cadence {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .rentals-results {
    padding-left: 10px;
    padding-right: 10px;
  }

  .map-preview {
    width: min(218px, calc(100vw - 28px));
  }

  .pcard__photo {
    height: 104px;
  }
}
