.daudas-section {
  font-family: Cinzel;
  z-index: 1000;
  background: #FDFAF7;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}

.map {
  position: relative;
  aspect-ratio: 2.35 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("https://static.tildacdn.com/tild3031-3264-4235-b666-303166346664/DAUDAS_map_updated_1.webp");
  border-radius: 0;
}

ul#propertyList {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar {
  width: 100%;
  margin: 0;
  padding: 0;
  max-height: 40vh;
  display: block;
  position: relative;
  z-index: 10;
}

.property-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  white-space: nowrap;
}

.property-list::-webkit-scrollbar {
  display: none;
}

.property-list.dragging {
  cursor: grabbing;
  user-select: none;
}

.property-item {
  flex: 0 0 25%;
  max-width: 25%;
  box-sizing: border-box;
  background: #FDFAF7;
  cursor: pointer;
  font-size: 1.05rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 20px;
  white-space: normal;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.property-item:hover {
  background: #f1f5f9;
  border-color: #cbd5f5;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.property-item.active {
  background: #e0f2fe;
  border-color: #38bdf8;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.property-item.status-rezervets-card {
  background: #fef3c7;
  border-color: #facc15;
  opacity: 0.4;
  cursor: default;
}

.property-item.status-pardots-card {
  background: #fee2e2;
  border-color: #ef4444;
  opacity: 0.4;
  cursor: default;
}

.property-item.status-rezervets-card:hover,
.property-item.status-pardots-card:hover {
  background: inherit;
  border-color: inherit;
  transform: none;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05);
}

.status-pill {
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pieejams {
  color: #16a34a;
}

.status-pardots {
  color: #dc2626;
}

.status-rezervets {
  color: #ca8a04;
}

.lot-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
}

.lot-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.lot-circle {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid transparent;
}

.lot-circle-available {
  background: #16a34a;
  color: #FDFAF7;
  border-color: #16a34a;
}

.lot-circle-reserved {
  background: #eab308;
  color: #FDFAF7;
  border-color: #eab308;
}

.lot-circle-sold {
  background: #ef4444;
  color: #FDFAF7;
  border-color: #ef4444;
}

.lot-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lot-name {
  font-size: 1.2rem;
  font-weight: 800;
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
}

.lot-street {
  font-size: 1.05rem;
  font-weight: 200;
  white-space: normal;
  text-overflow: ellipsis;
  overflow: hidden;
}

.lot-size {
  font-size: 1.15rem;
  font-weight: 200;
  opacity: 0.85;
}

.lot-right {
  margin-top: auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.lot-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: black;
}

.lot-old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.lot-status-btn {
  border-radius: 9999px;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 16px;
  letter-spacing: 0.03em;
}

.lot-status-reserved {
  background: #fef3c7;
  color: #ca8a04;
}

.lot-status-sold {
  background: #fee2e2;
  color: #dc2626;
}

.lot-row-disabled {
  opacity: 0.9;
}

.plot-overlay {
  position: absolute;
  border-radius: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.plot-overlay:hover,
.plot-overlay.active {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
  transform: translateY(-0.5px);
}

.tooltip {
  position: absolute;
  min-width: 220px;
  max-width: 320px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.75);
  color: #f9fafb;
  border-radius: 14px;
  font-size: 0.95rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.tooltip-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.tooltip-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.tooltip-size {
  font-size: 1.2rem;
  font-weight: 700;
}

.tooltip-price-block {
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.tooltip-old-price {
  font-size: 1.2rem;
  text-decoration: line-through;
  opacity: 0.7;
}

.tooltip-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #facc15;
}

.tooltip-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.reserve-btn {
  appearance: none;
  border: none;
  border-radius: 9999px;
  padding: 11px 18px;
  background: #facc15;
  color: #111827;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 16px rgba(250, 204, 21, 0.28);
}

.reserve-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.tooltip.above {}
.tooltip.below {}

.plot-overlay.status-rezervets {
  background: rgba(234, 179, 8, 0.45);
  box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.7);
  cursor: default;
  pointer-events: none;
}

.plot-overlay.status-pardots {
  background: rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.7);
  cursor: default;
  pointer-events: none;
}

.plot-overlay.special-area {
  cursor: pointer;
}

.plot-overlay.special-labyrinth {
  background: rgba(34, 197, 94, 0.30);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.8);
}

.plot-overlay.special-labyrinth:hover {
  background: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.9);
}

.plot-overlay.special-sports {
  background: rgba(59, 130, 246, 0.30);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.8);
}

.plot-overlay.special-sports:hover {
  background: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.9);
}

.mobile-list-overlay {
  display: none;
}

.mobile-list-toggle {
  border: none;
  border-radius: 9999px;
  padding: 10px 18px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-list-toggle:hover {
  background: #020617;
}

.reservation-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.reservation-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.reservation-modal {
  width: 100%;
  max-width: 560px;
  background: #FDFAF7;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transform: translateY(10px);
  transition: transform 0.2s ease;
  font-family: Arial, sans-serif;
}

.reservation-modal-backdrop.open .reservation-modal {
  transform: translateY(0);
}

.reservation-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 14px;
  border-bottom: 1px solid #ece7df;
}

.reservation-modal-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  color: #111827;
  font-family: Cinzel, serif;
}

.reservation-modal-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.reservation-modal-content {
  padding: 22px 24px 24px;
}

.reservation-modal-intro {
  margin: 0 0 18px;
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.5;
}

.reservation-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

.reservation-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reservation-field.full {
  grid-column: 1 / -1;
}

.reservation-field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.reservation-field input,
.reservation-field select {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #d6d3d1;
  padding: 0 14px;
  font-size: 0.98rem;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}

.reservation-field input:focus,
.reservation-field select:focus {
  outline: none;
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.reservation-submit {
  margin-top: 18px;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 9999px;
  background: #111827;
  color: #FDFAF7;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.reservation-submit:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.reservation-success {
  display: none;
  margin-top: 16px;
  border-radius: 14px;
  padding: 14px 16px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.reservation-success.visible {
  display: block;
}

.reservation-note {
  margin-top: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #6b7280;
}

@media (max-width: 700px) {
  .mobile-hidden-item {
    display: none !important;
  }

  .daudas-section {
    height: auto;
    overflow: visible;
  }

  .wrapper {
    height: auto;
    flex-direction: column;
    position: static;
    transform: none;
    max-width: 100%;
    margin: 0 auto;
  }

  .map {
    position: relative;
    aspect-ratio: 1 / 2.35;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("https://static.tildacdn.com/tild3432-6362-4234-b739-313434366562/DAUDAS_map_updated_2.webp");
  }

  .sidebar {
    order: 2;
    width: 100vw;
    height: auto;
    max-height: none;
    background: #FDFAF7;
    border-radius: 0;
    padding: 0;
    border-top: 1px solid #e5e7eb;
    position: relative;
  }

  .property-list {
    width: 100vw;
    flex-direction: column;
    gap: 0;
    padding: 8px 12px 60px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    cursor: default;
  }

  .mobile-list-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.75);
    z-index: 20;
  }

  .mobile-list-overlay.expanded {
    position: static;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 16px 0;
    margin-top: 8px;
  }

  .property-item {
    min-width: 100vw;
    border-radius: 0;
    border: 0;
    background-color: #FDFAF7;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
    padding: 16px 12px;
    display: block;
    font-size: 2rem;
  }

  .property-item:hover {
    background: #FDFAF7;
    border-color: transparent;
    transform: none;
    box-shadow: none;
  }

  .property-item.active {
    background: #c0e0ff;
    border-color: transparent;
    box-shadow: none;
  }

  .lot-row {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: auto;
    padding: 4px 0;
  }

  .lot-left {
    align-items: center;
  }

  .lot-circle {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    font-size: 1.2rem;
  }

  .lot-name {
    font-size: 1.2rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .lot-street {
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
  }

  .lot-size {
    font-size: 1rem;
  }

  .lot-price {
    font-size: 1.2rem;
    color: black;
  }

  .lot-status-btn {
    font-size: 0.8rem;
    border-radius: 4px;
    padding: 0px;
  }

  .tooltip-header {
    font-size: 1.1rem;
  }

  .tooltip-size {
    font-size: 1.05rem;
  }

  .tooltip-price-block {
    font-size: 1rem;
  }

  .tooltip-old-price {
    font-size: 1.05rem;
  }

  .tooltip-price {
    font-size: 1.25rem;
  }

  .tooltip-actions {
    margin-top: 12px;
  }

  .reserve-btn {
    width: 100%;
  }

  .reservation-modal {
    max-width: 100%;
    border-radius: 18px;
  }

  .reservation-form-grid {
    grid-template-columns: 1fr;
  }
}
