/* Add your custom CSS below this line. */

html.lot-selector-panel-open,
body.lot-selector-panel-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.lot-selector {
  --ink: #183019;
  --muted: #647064;
  --green: #4c8f3a;
  --green-fill: rgba(77, 145, 58, 0.68);
  --gold: #d6a300;
  --gold-fill: rgba(233, 179, 0, 0.72);
  --red: #b93832;
  --red-fill: rgba(191, 52, 45, 0.7);
  --white: #fff;
  --line: rgba(255, 255, 255, 0.98);
  --shadow: 0 22px 70px rgba(13, 31, 14, 0.22);
  color: var(--ink);
}

.lot-selector,
.lot-selector * {
  box-sizing: border-box;
}

.lot-selector {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: visible;
  font-family: "Raleway", sans-serif;
  background: #eef1eb;
}

.lot-selector .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 52px);
  background:
    linear-gradient(90deg, rgba(76, 143, 58, 0.1), transparent 45%),
    linear-gradient(180deg, #f8faf6, #e5ebe1);
  border-top: 1px solid rgba(24, 48, 25, 0.06);
  border-bottom: 1px solid rgba(24, 48, 25, 0.12);
  box-shadow: 0 8px 18px rgba(24, 48, 25, 0.06);
  position: relative;
  z-index: 3;
}

.lot-selector .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lot-selector .mark {
  width: 42px;
  height: 42px;
  border: 2px solid var(--green);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--green);
}

.lot-selector .brand h1 {
  font-size: 1.06rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.lot-selector .brand p {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin: 3px 0 0;
  color: var(--muted);
}

.lot-selector .controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.lot-selector .search-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lot-selector .legend {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin-right: 8px;
}

.lot-selector .legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lot-selector .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.lot-selector .dot.a {
  background: var(--green);
}

.lot-selector .dot.r {
  background: var(--gold);
}

.lot-selector .dot.s {
  background: var(--red);
}

.lot-selector .search {
  height: 42px;
  border: 1px solid #d9ded6;
  border-radius: 10px;
  padding: 0 13px;
  width: 190px;
  font-family: "Raleway", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.lot-selector .search::placeholder {
  color: var(--muted);
  font-weight: 500;
  opacity: 1;
}

.lot-selector .filter {
  height: 42px;
  border: 1px solid #d9ded6;
  border-radius: 10px;
  background: #fff;
  padding: 0 14px;
  font-family: "Raleway", sans-serif;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.lot-selector .main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overscroll-behavior: contain;
}

.lot-selector .map-area {
  padding: clamp(16px, 3vw, 36px);
  display: grid;
  place-items: center;
  overflow: visible;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(180deg, #f4f6f1, #e8ece5);
}

.lot-selector .map-card {
  width: min(100%, 1250px);
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #172819;
  box-shadow: var(--shadow);
}

.lot-selector .map-stage {
  position: relative;
  aspect-ratio: 630/255;
  min-width: 780px;
}

.lot-selector .map-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lot-selector .map-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.1));
}

.lot-selector .map-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.lot-selector .lot {
  cursor: pointer;
  stroke: var(--line);
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
  transition:
    filter 0.16s,
    fill 0.16s,
    transform 0.16s;
  transform-box: fill-box;
  transform-origin: center;
}

.lot-selector .lot.available {
  fill: var(--green-fill);
}

.lot-selector .lot.reserved {
  fill: var(--gold-fill);
}

.lot-selector .lot.sold {
  fill: var(--red-fill);
}

.lot-selector .lot:hover,
.lot-selector .lot:focus {
  filter: brightness(1.18) drop-shadow(0 0 7px rgba(255, 255, 255, 0.95));
  stroke-width: 3.6;
  outline: none;
  transform: scale(1.018);
}

.lot-selector .label {
  pointer-events: none;
  fill: #fff;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-width: 2px;
}

.lot-selector .hint {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: #fff;
  background: rgba(10, 25, 12, 0.76);
  backdrop-filter: blur(8px);
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.lot-selector .panel {
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: -20px 0 48px rgba(13, 31, 14, 0.2);
  padding: 28px 26px 44px;
  position: fixed;
  z-index: 12;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 92vw);
  min-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease,
    visibility 0s linear 320ms;
}

.lot-selector .panel.is-open {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.lot-selector .panel-overlay {
  position: fixed;
  z-index: 11;
  inset: 0;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: default;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.lot-selector .panel-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

.lot-selector .panel-close {
  position: sticky;
  z-index: 1;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  margin: -8px -8px 0 14px;
  border: 1px solid #d9ded6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  cursor: pointer;
  font: 1.8rem/1 sans-serif;
}

.lot-selector .panel-close:hover,
.lot-selector .panel-close:focus-visible {
  border-color: var(--green);
  color: var(--green);
  outline: none;
}

.lot-selector #details.is-exiting {
  animation: lot-selector-panel-content-out 180ms ease forwards;
}

.lot-selector #details.is-entering {
  animation: lot-selector-panel-content-in 240ms ease both;
}

@keyframes lot-selector-panel-content-out {
  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

@keyframes lot-selector-panel-content-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.lot-selector .eyebrow {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.lot-selector .panel h2 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 8px 0 12px;
}

.lot-selector .badge {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.83rem;
  background: #e4f2df;
  color: #2c6b2f;
}

.lot-selector .panel .photo {
  margin: 20px 0 18px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #d9e2d4;
}

.lot-selector .panel .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-selector .intro {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
}

.lot-selector .info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0;
}

.lot-selector .card {
  border: 1px solid #e2e6df;
  border-radius: 12px;
  padding: 12px;
}

.lot-selector .card b {
  display: block;
  color: var(--muted);
  font-size: 0.675rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 5px;
}

.lot-selector .card span {
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.3;
}

.lot-selector .models {
  margin-top: 22px;
}

.lot-selector .models h3 {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.lot-selector .model {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid #edf0eb;
}

.lot-selector .model small {
  color: var(--muted);
}

.lot-selector .actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.lot-selector .btn {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  border-radius: 11px;
  padding: 13px 14px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.lot-selector .actions .btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 480ms ease;
}

.lot-selector .actions .btn:hover,
.lot-selector .actions .btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(24, 48, 25, 0.18);
}

.lot-selector .actions .btn:hover::after,
.lot-selector .actions .btn:focus-visible::after {
  transform: translateX(120%);
}

.lot-selector .actions .btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.lot-selector .actions .btn:focus-visible {
  outline: 3px solid rgba(76, 143, 58, 0.45);
  outline-offset: 3px;
}

.lot-selector .btn.primary {
  background: var(--green);
  color: #fff;
}

.lot-selector .btn.secondary {
  border: 1px solid #bfc9bb;
  color: var(--ink);
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .lot-selector .actions .btn,
  .lot-selector .actions .btn::after {
    transition: none;
  }
}

.lot-selector .empty {
  padding-top: 80px;
}

.lot-selector .empty h2 {
  font-size: 1.8rem;
}

.lot-selector .empty p {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .lot-selector .map-stage {
    min-width: 720px;
  }

  .lot-selector .controls .legend {
    display: none;
  }
}

@media (max-width: 640px) {
  .lot-selector .main {
    overflow: auto;
  }
  .lot-selector .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lot-selector .controls {
    width: 100%;
  }

  .lot-selector .search-controls {
    flex: 1;
  }

  .lot-selector .search {
    flex: 1;
    min-width: 0;
  }

  .lot-selector .map-area {
    place-items: start;
  }

  .lot-selector .map-card {
    min-width: 900px;
  }

  .lot-selector .map-stage {
    min-width: 900px;
  }

  .lot-selector .panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: min(86dvh, 720px);
    padding: 24px 18px 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-left: 0;
    border-radius: 22px 22px 0 0;
    transform: translateY(100%);
  }

  .lot-selector .panel.is-open {
    transform: translateY(0);
  }

  .lot-selector .info {
    grid-template-columns: 1fr 1fr;
  }
}
