.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.menu-bar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 60px;
  background: linear-gradient(135deg, #1a1a2e 0, #16213e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  z-index: 10000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.menu-bar.position-top {
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  width: 100%;
  height: 60px;
  flex-direction: row;
}
.menu-bar.position-top .logo {
  margin-bottom: 0;
  margin-right: 20px;
}
.menu-bar.position-top .menu-items {
  flex-direction: row;
  padding-left: 16px;
  padding-right: 16px;
}
.menu-bar.position-top .position-toggle {
  margin-top: 0;
  margin-left: auto;
  margin-right: 10px;
}
.menu-bar.position-left {
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: 60px;
  height: auto;
  flex-direction: column;
}
.menu-bar.position-right {
  left: auto;
  right: 0;
}
.menu-bar.position-bottom {
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  flex-direction: row;
}
.menu-bar.position-bottom .logo {
  margin-bottom: 0;
  margin-right: 20px;
}
.menu-bar.position-bottom .menu-items {
  flex-direction: row;
  padding-left: 16px;
  padding-right: 16px;
}
.menu-bar.position-bottom .position-toggle {
  margin-top: 0;
  margin-left: auto;
  margin-right: 10px;
}
.menu-bar .logo {
  color: #fff;
  font-size: 24px;
  margin-bottom: 20px;
}
.menu-bar .menu-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.menu-bar .menu-item {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.menu-bar .menu-item:hover {
  background: rgba(255, 255, 255, 0.2);
}
.menu-bar .menu-item.active {
  background: #0f3460;
  border: 2px solid #667eea;
}
.menu-bar .menu-item.has-favorites svg {
  stroke: #ffd700;
  fill: #ffd700;
}
.menu-bar .menu-item svg {
  width: 22px;
  height: 22px;
}
.menu-bar .menu-item::before {
  content: attr(title);
  position: absolute;
  left: 60px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100001;
}
.menu-bar .menu-item:hover::before {
  opacity: 1;
}
.menu-bar .position-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-bar .position-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}
.menu-bar .position-toggle svg {
  width: 20px;
  height: 20px;
}
.menu-bar-secondary {
  position: fixed;
  background: linear-gradient(135deg, #1a1a2e 0, #16213e 100%);
  display: flex;
  flex-direction: column;
  padding: 10px 6px;
  z-index: 9999;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  gap: 6px;
  transition:
    opacity 0.2s,
    transform 0.2s;
  width: fit-content;
  height: fit-content;
}
.menu-bar-secondary.visible {
  opacity: 1;
  visibility: visible;
}
.menu-bar-secondary.horizontal {
  flex-direction: row;
}
.menu-bar-secondary .menu-item-secondary {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.menu-bar-secondary .menu-item-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}
.menu-bar-secondary .menu-item-secondary.active {
  background: #0f3460;
  border: 2px solid #667eea;
}
.menu-bar-secondary .menu-item-secondary svg {
  width: 20px;
  height: 20px;
}
.menu-bar-secondary .menu-item-secondary .layer-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.menu-bar-secondary .menu-item-secondary::before {
  content: attr(title);
  position: absolute;
  left: 50px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 100001;
}
.menu-bar-secondary .menu-item-secondary:hover::before {
  opacity: 1;
}
.side-panel {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 9998;
  transition:
    left 0.3s,
    right 0.3s;
  overflow-y: auto;
}
.side-panel.open {
  left: 60px;
}
.side-panel::-webkit-scrollbar {
  display: none;
}
.side-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.menu-top .side-panel {
  left: -400px;
  right: auto;
  top: 0;
  bottom: auto;
  transition: left 0.3s;
}
body.menu-top .side-panel.open {
  left: 0;
  top: 60px;
  height: calc(100vh - 60px);
}
body.menu-bottom .side-panel {
  left: -400px;
  right: auto;
  top: auto;
  bottom: 0;
  transition: left 0.3s;
}
body.menu-bottom .side-panel.open {
  left: 0;
  bottom: 60px;
  height: calc(100vh - 60px);
  top: auto;
}
body.menu-right .side-panel {
  left: auto;
  right: -400px;
  top: 0;
  bottom: auto;
  transition: right 0.3s;
}
body.menu-right .side-panel.open {
  right: 60px;
  left: auto;
  top: 0;
  height: 100vh;
}
.side-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a2e 0, #16213e 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.side-panel .panel-header h3 {
  margin: 0;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
.side-panel .close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.side-panel .close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.side-panel .panel-content {
  padding: 0;
}
.panel-body {
  padding: 20px;
}
.side-panel .panel-content p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}
.side-panel .panel-content h4 {
  font-size: 16px;
  color: #1a1a2e;
  margin: 16px 0 12px;
}
#map1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.mouse-position {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  z-index: 1000;
  white-space: nowrap;
  width: fit-content;
  transition: all 0.3s ease;
}
.menu-bar.position-right ~ .mouse-position {
  right: 80px;
}
.menu-bar.position-bottom ~ .mouse-position {
  bottom: 70px;
}
.menu-bar.position-top .menu-item::before {
  left: 50%;
  top: 50px;
  transform: translateX(-50%);
}
.menu-bar.position-right .menu-item::before {
  left: auto;
  right: 50px;
}
.menu-bar.position-bottom .menu-item::before {
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
}
@media (max-width: 1024px) {
  .menu-bar {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    flex-direction: row !important;
  }
  .menu-bar .logo {
    margin-bottom: 0 !important;
    margin-right: 20px !important;
  }
  .menu-bar .menu-items {
    flex-direction: row !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .menu-bar .position-toggle {
    display: none !important;
  }
  .menu-bar .menu-item::before {
    left: 50% !important;
    top: -40px !important;
    transform: translateX(-50%) !important;
  }
  .menu-bar ~ .mouse-position {
    bottom: 70px !important;
  }
}
.coords-panel {
  position: fixed;
  bottom: 70px;
  right: 12px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 12px;
  z-index: 1001;
  max-width: 400px;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.coords-panel.visible {
  display: block;
}
.coords-panel .coords-title {
  font-weight: 600;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.coords-panel .coords-list {
  max-height: 250px;
}
.coords-panel .copy-btn {
  background: #667eea;
  border: none;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}
.coords-panel .copy-btn:hover {
  background: #5a6fd6;
}
.coords-panel .coords-list {
  max-height: 200px;
  overflow-y: auto;
}
.coords-panel .coord-item {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.coords-panel .coord-item:last-child {
  border-bottom: none;
}
.center-marker {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  pointer-events: none;
  transition: all 0.3s ease;
}
.center-marker svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.center-marker.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
.center-marker-coords {
  position: fixed;
  bottom: 80px;
  right: 12px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  z-index: 1000;
  white-space: nowrap;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.center-marker-coords.visible {
  display: block;
}
.center-marker-coords .coords-label {
  font-weight: 600;
  color: #667eea;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.center-marker-coords .coords-value {
  font-size: 14px;
}
.ad-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  backdrop-filter: blur(4px);
}
.ad-modal-overlay.visible {
  display: flex;
}
.ad-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: adModalPopIn 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes adModalPopIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.ad-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  border-radius: 16px 16px 0 0;
  color: #fff;
}
.ad-modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.ad-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 26px;
  transition: all 0.2s;
}
.ad-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.ad-modal-body {
  padding: 28px;
}
.ad-quiz-step {
  display: none;
}
.ad-quiz-step.active {
  display: block;
  animation: adStepSlideIn 0.3s ease;
}
@keyframes adStepSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.ad-step-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #667eea;
}
.ad-type-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ad-type-option {
  padding: 18px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
}
.ad-type-option:hover {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0,
    rgba(118, 75, 162, 0.05) 100%
  );
  transform: translateX(5px);
}
.ad-type-option.selected {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0,
    rgba(118, 75, 162, 0.15) 100%
  );
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}
.ad-type-option input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: #667eea;
}
.ad-type-option label {
  cursor: pointer;
  flex: 1;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}
.ad-form-group {
  margin-bottom: 24px;
}
.ad-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.ad-form-group input[type="number"],
.ad-form-group input[type="text"],
.ad-form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.2s;
  box-sizing: border-box;
}
.ad-form-group input:focus,
.ad-form-group textarea:focus {
  outline: 0;
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}
.ad-form-group textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}
.ad-char-count {
  text-align: right;
  font-size: 13px;
  color: #888;
  margin-top: 6px;
}
.ad-cadastral-input {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 2px;
}
.ad-checkbox-section {
  margin-bottom: 28px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}
.ad-checkbox-section-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dee2e6;
}
.ad-checkbox-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.ad-checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.2s;
  background: #fff;
}
.ad-checkbox-option:hover {
  background: #e9ecef;
  transform: translateX(3px);
}
.ad-checkbox-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #667eea;
}
.ad-checkbox-option label {
  cursor: pointer;
  font-size: 14px;
  color: #333;
  flex: 1;
}
.ad-conditional-fields {
  background: linear-gradient(135deg, #f8f9fa 0, #e9ecef 100%);
  padding: 24px;
  border-radius: 12px;
  margin-top: 20px;
  border-left: 5px solid #667eea;
}
.ad-modal-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  gap: 16px;
}
.ad-btn {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
}
.ad-btn-back {
  background: #e9ecef;
  color: #333;
}
.ad-btn-back:hover {
  background: #dee2e6;
}
.ad-btn-next,
.ad-btn-submit {
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.ad-btn-next:hover,
.ad-btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.ad-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ad-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid #e9ecef;
  background: #fafbfc;
}
.ad-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
  transition: all 0.3s;
}
.ad-progress-dot.active {
  background: #667eea;
  width: 40px;
  border-radius: 6px;
}
.ad-progress-dot.completed {
  background: #28a745;
}
.ad-photo-upload {
  margin-top: 16px;
}
.ad-photo-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 2px dashed #667eea;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(102, 126, 234, 0.05);
}
.ad-photo-label:hover {
  background: rgba(102, 126, 234, 0.1);
  border-color: #764ba2;
}
.ad-photo-label input[type="file"] {
  display: none;
}
.ad-photo-icon {
  font-size: 32px;
  margin-right: 12px;
}
.ad-photo-text {
  font-size: 14px;
  color: #666;
}
.ad-photo-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.ad-photo-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e9ecef;
}
.ad-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-photo-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-preview-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.ad-preview-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #dee2e6;
}
.ad-preview-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e9ecef;
}
.ad-preview-row:last-child {
  border-bottom: none;
}
.ad-preview-label {
  font-size: 13px;
  color: #888;
  font-weight: 500;
}
.ad-preview-value {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  text-align: right;
}
.ad-preview-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ad-preview-photo {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}
.ad-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-preview-communications {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.ad-preview-comm-item {
  font-size: 12px;
  padding: 6px 10px;
  background: #e7f3ff;
  border-radius: 6px;
  color: #06c;
}
.ad-boundary-layer {
  z-index: 500 !important;
}
.ad-confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000000;
}
.ad-confirm-overlay.visible {
  display: flex;
}
.ad-confirm-modal {
  background: #fff;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.ad-confirm-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}
.ad-confirm-message {
  font-size: 15px;
  color: #666;
  margin-bottom: 28px;
}
.ad-confirm-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.ad-btn-cancel {
  background: #e9ecef;
  color: #333;
  min-width: 100px;
}
.ad-btn-confirm {
  background: linear-gradient(135deg, #dc3545 0, #c82333 100%);
  color: #fff;
  min-width: 100px;
}
.ad-yes-no-group {
  display: flex;
  gap: 20px;
}
.ad-yes-no-option {
  flex: 1;
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  font-weight: 600;
}
.ad-yes-no-option:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}
.ad-yes-no-option.selected {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0,
    rgba(118, 75, 162, 0.15) 100%
  );
}
.ad-yes-no-option input[type="radio"] {
  display: none;
}
.ad-error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 6px;
}
.ad-form-group.error input {
  border-color: #dc3545;
}
.ad-success-message {
  text-align: center;
  padding: 50px 30px;
}
.ad-success-icon {
  font-size: 80px;
  margin-bottom: 20px;
}
.ad-success-title {
  font-size: 24px;
  font-weight: 700;
  color: #28a745;
  margin-bottom: 12px;
}
.ad-success-text {
  font-size: 15px;
  color: #666;
}
.ad-success-id {
  background: #e7f3ff;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  color: #06c;
  margin-top: 16px;
  display: inline-block;
}
.lot-filter-group {
  margin-bottom: 14px;
}
.lot-filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  margin-bottom: 5px;
}
.lot-filter-group input[type="number"],
.lot-filter-group input[type="text"],
.lot-filter-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  outline: 0;
  transition: border-color 0.15s;
}
.lot-filter-group input:focus,
.lot-filter-group select:focus {
  border-color: #667eea;
}
.lot-filter-checks,
.lot-filter-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
}
.lot-filter-checks label,
.lot-filter-toggles label {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.lot-filter-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.lot-btn {
  flex: 1;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.05s,
    opacity 0.15s;
}
.lot-btn:active {
  transform: translateY(1px);
}
.lot-btn.primary {
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: #fff;
}
.lot-btn.secondary {
  background: #e9ecef;
  color: #333;
}
.lot-btn.secondary:hover {
  background: #dee2e6;
}
.lot-stats {
  text-align: center;
  font-size: 12px;
  color: #666;
  padding: 6px 0;
}
.lot-popup {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  min-width: 280px;
  max-width: 340px;
  font-size: 13px;
  color: #333;
  z-index: 10000;
  overflow: hidden;
}
.lot-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: #fff;
}
.lot-popup-header strong {
  font-size: 14px;
}
.lot-popup-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.lot-popup-body {
  padding: 12px 14px;
  max-height: 320px;
  overflow-y: auto;
}
.lot-popup-address {
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a2e;
}
.lot-popup-row {
  margin-bottom: 6px;
}
.lot-popup-photos {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
}
.lot-popup-photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
}
.lot-popup-photos img:hover {
  opacity: 0.9;
}
#filters-panel .panel-content {
  padding-bottom: 20px;
}
.lot-premium {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
}
.lot-premium-header {
  background: linear-gradient(135deg, #1a1a2e 0, #16213e 100%);
  color: #fff;
  padding: 16px 20px 16px;
  position: relative;
}
.lot-premium-price {
  font-size: 26px;
  font-weight: 700;
  color: gold;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.lot-premium-address {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-top: 8px;
}
.lot-premium-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.lot-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.2px;
}
.lot-badge--auction {
  background: #e3f2fd;
  color: #1565c0;
}
.lot-badge--message {
  background: #fff3e0;
  color: #ef6c00;
}
.lot-badge--sale {
  background: #e8f5e9;
  color: #2e7d32;
}
.lot-badge--rent {
  background: #f3e5f5;
  color: #7b1fa2;
}
.lot-badge--zk {
  background: #e0f7fa;
  color: #00838f;
}
.lot-badge--default {
  background: #f5f5f5;
  color: #616161;
}
.lot-premium-body {
  padding: 12px 16px;
}
.lot-premium-section {
  margin-bottom: 10px;
}
.lot-premium-section-title {
  font-size: 11px;
  font-weight: 600;
  color: #8898aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.lot-premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.lot-premium-row {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid #f4f6f8;
}
.lot-premium-row--full {
  grid-column: 1/-1;
}
.lot-premium-label {
  font-size: 12px;
  color: #8898aa;
  margin-bottom: 2px;
}
.lot-premium-value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a2e;
}
.vri-tag {
  display: inline-block;
  margin-right: 8px;
  position: relative;
}
.vri-info-icon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
  cursor: help;
  color: #8898aa;
}
.vri-info-icon svg {
  display: block;
}
#vri-tooltip {
  display: none;
  position: fixed;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  width: 300px;
  max-width: calc(100vw - 20px);
  pointer-events: none;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.lot-premium-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.lot-premium-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8f9fa;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.lot-premium-link:hover {
  background: #e9ecef;
}
.lot-premium-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.6;
}
.lot-premium-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.lot-premium-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.lot-premium-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.lot-premium-photo:hover img {
  transform: scale(1.05);
}
.lot-premium-photo--more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: 0 0;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 40px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  padding: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 48px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  user-select: none;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}
.lightbox-prev {
  left: 20px;
}
.lightbox-next {
  right: 20px;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.lot-premium-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #1565c0;
  transition: color 0.2s;
  position: relative;
}
.lot-premium-copy:hover {
  color: #0d47a1;
  text-decoration: underline;
}
.lot-premium-copy svg {
  opacity: 0.5;
  transition: opacity 0.2s;
}
.lot-premium-copy:hover svg {
  opacity: 1;
}
.lot-copy-toast {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1a2e;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.lot-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.lot-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-top: 10px;
  background: #f8f9fa;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  transition: background 0.2s;
}
.lot-accordion-toggle:hover {
  background: #e9ecef;
}
.lot-accordion-toggle svg {
  transition: transform 0.25s;
}
.lot-accordion-toggle.open svg {
  transform: rotate(180deg);
}
.lot-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  padding: 0;
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
}
.lot-accordion-body.open {
  max-height: 9999px;
  padding: 14px;
}
.lot-accordion-address {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}
.lot-accordion-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.6;
  background: #fff;
  padding: 12px;
  border-radius: 6px;
  border: 1px dashed #dee2e6;
}
.lot-action-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.lot-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  background: #f1f3f5;
  border: 1px solid #fff;
  cursor: pointer;
  text-align: center;
}
.lot-action-btn--secondary {
  background: #f1f3f5;
  border: 1px solid #fff;
}
#lot-detail-panel .lot-action-btn:hover {
  border: 1px solid #667eea !important;
  background: #e9ecef;
}
.lot-vpn-notice {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}
.filter-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  border-radius: 16px 16px 0 0;
  color: #fff;
}
.filter-panel-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.filter-panel-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-panel-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}
.filter-panel-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(85vh - 70px);
}
.filter-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.filter-section:last-of-type {
  border-bottom: none;
}
.filter-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
  display: inline-block;
}
.filter-form-group {
  margin-bottom: 12px;
}
.filter-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}
.filter-form-group input[type="number"],
.filter-form-group input[type="text"],
.filter-form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  outline: 0;
  transition: all 0.2s;
  color: #333;
}
.filter-form-group input:focus,
.filter-form-group select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
.filter-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.filter-option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.filter-option-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  background: #fff;
  position: relative;
}
.filter-option-item:hover {
  border-color: #667eea;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0,
    rgba(118, 75, 162, 0.05) 100%
  );
  transform: translateX(3px);
}
.filter-option-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-option-check {
  width: 22px;
  height: 22px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.filter-option-check::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #667eea;
  border-radius: 3px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s;
}
.filter-option-item input[type="checkbox"]:checked + .filter-option-check {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}
.filter-option-item
  input[type="checkbox"]:checked
  + .filter-option-check::after {
  opacity: 1;
  transform: scale(1);
}
.filter-option-text {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  user-select: none;
}
.filter-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 12px;
}
.filter-btn {
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.filter-btn:active {
  transform: translateY(1px);
}
.filter-btn-primary {
  background: linear-gradient(135deg, #667eea 0, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.filter-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}
.filter-btn-secondary {
  background: #e9ecef;
  color: #333;
}
.filter-btn-secondary:hover {
  background: #dee2e6;
}
.filter-btn-sync {
  background: #f8f9fa;
  color: #555;
  border: 2px dashed #dee2e6;
  font-size: 14px;
  padding: 12px;
  width: 100%;
}
.filter-btn-sync:hover {
  background: #e9ecef;
  border-color: #667eea;
  color: #667eea;
}
.filter-stats {
  text-align: center;
  font-size: 13px;
  color: #666;
  padding: 8px 0;
  margin-bottom: 8px;
}
.filter-sync-actions {
  margin-top: 4px;
}
#filters-panel.side-panel {
  overflow-y: visible;
}
#filters-panel .panel-content {
  padding: 12px 16px;
}
#filters-panel .panel-body {
  padding: 0;
}
.filter-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  color: #8898aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.filter-accordion-toggle:hover {
  background: #e9ecef;
}
.filter-accordion-toggle svg {
  transition: transform 0.25s;
}
.filter-accordion-toggle.open svg {
  transform: rotate(180deg);
}
.filter-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease;
  padding: 0;
  background: #fff;
  border: none;
  border-radius: 0 0 8px 8px;
}
.filter-accordion-body.open {
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e0e0e0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-accordion-body.open::-webkit-scrollbar {
  display: none;
}
#filter-permitted-use-container .ad-checkbox-option {
  padding: 3px 10px;
  margin-bottom: 6px;
  background: 0 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
#filter-permitted-use-container .ad-checkbox-option:hover {
  background: #f8f9fa;
  border: 1px solid #667eea !important;
  transform: none;
  box-shadow: none;
}
#filters-panel .ad-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #667eea;
  display: inline-block;
}
#filters-panel .ad-checkbox-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  padding-left: 10px;
}
#filters-panel .ad-checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f8f9fa;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s;
}
#filters-panel .ad-checkbox-option:hover {
  background: #fff;
  border: 1px solid #667eea !important;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.1);
}
#filters-panel .ad-checkbox-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  flex-shrink: 0;
  cursor: pointer;
}
#filters-panel .ad-checkbox-option label {
  font-size: 14px;
  color: #333;
  flex: 1;
  font-weight: 500;
  user-select: none;
  cursor: pointer;
}
#filters-panel .ad-form-group {
  margin-bottom: 12px;
}
#filters-panel .ad-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}
#filters-panel .ad-form-group input[type="number"],
#filters-panel .ad-form-group select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  background: #fff;
  outline: 0;
  transition: all 0.2s;
  color: #333;
  box-sizing: border-box;
}
#filters-panel .ad-form-group input[type="number"]:focus,
#filters-panel .ad-form-group select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}
#filters-panel .ad-btn {
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
}
.lot-premium-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.lot-favorite-btn {
  background: 0 0;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px;
  transition:
    color 0.2s,
    transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lot-favorite-btn:hover {
  color: gold;
  transform: scale(1.15);
}
.lot-favorite-btn.active {
  color: gold;
}
.lot-favorite-btn svg {
  width: 24px;
  height: 24px;
}
.favorites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.favorite-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e9ecef;
}
.favorite-item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.favorite-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.favorite-item-price {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}
.favorite-item-remove {
  background: 0 0;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 1;
}
.favorite-item-remove:hover {
  background: #ffebee;
  color: #d32f2f;
}
.favorite-item-address {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.4;
}
.favorite-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#lot-detail-panel .lot-premium {
  padding-top: 0;
}
@media (max-width: 1024px) {
  .menu-bar {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0 8px !important;
  }
  .menu-bar .logo {
    display: none !important;
  }
  .menu-bar .menu-items {
    flex-direction: row !important;
    gap: 6px !important;
    flex: 1 !important;
    justify-content: space-around !important;
    padding: 0 !important;
  }
  .menu-bar .menu-item {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
  }
  .menu-bar .menu-item::before {
    display: none !important;
  }
  .menu-bar .position-toggle {
    display: none !important;
  }
  .side-panel {
    left: -100vw !important;
    width: 100vw !important;
    top: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
  }
  .side-panel.open {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
  }
  body.menu-bottom .side-panel {
    left: -100vw !important;
    top: 0 !important;
    bottom: 60px !important;
  }
  body.menu-bottom .side-panel.open {
    left: 0 !important;
    top: 0 !important;
    bottom: 60px !important;
    height: calc(100vh - 60px) !important;
  }
  .side-panel .panel-header {
    padding: 14px 16px !important;
  }
  .side-panel .panel-header h3 {
    font-size: 18px !important;
  }
  .panel-body {
    padding: 16px !important;
  }
  .menu-bar-secondary {
    bottom: 70px !important;
    left: 8px !important;
    right: auto !important;
    top: auto !important;
    flex-direction: row !important;
    max-width: calc(100vw - 16px);
    overflow-x: auto !important;
  }
  .menu-bar-secondary.horizontal {
    flex-direction: row !important;
  }
  .menu-bar-secondary .menu-item-secondary {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
  }
  .menu-bar-secondary .menu-item-secondary::before {
    display: none !important;
  }
  .coords-panel {
    display: none !important;
  }
  .mouse-position {
    display: none !important;
  }
  #lot-detail-panel .lot-premium {
    padding-top: 0 !important;
  }
  .ad-checkbox-options {
    grid-template-columns: 1fr !important;
  }
  .ad-checkbox-options label {
    padding: 12px 8px !important;
    font-size: 15px !important;
  }
  .favorite-item {
    padding: 14px !important;
  }
  .side-panel::-webkit-scrollbar {
    display: none;
  }
  .ol-attribution {
    font-size: 10px !important;
  }
  .ol-attribution button {
    width: 18px !important;
    height: 18px !important;
  }
  .ol-zoom {
    bottom: 70px !important;
    top: auto !important;
    right: 8px !important;
    left: auto !important;
  }
  .ol-zoom button {
    width: 40px !important;
    height: 40px !important;
    font-size: 20px !important;
  }
}


/* ============================================================
   DESIGN SYSTEM FIXES — Overlay, Scrollbar, A11y, Motion
   ============================================================ */

/* Panel overlay backdrop */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.panel-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Styled scrollbar (visible but minimal) */
.side-panel::-webkit-scrollbar {
  width: 6px;
}
.side-panel::-webkit-scrollbar-track {
  background: transparent;
}
.side-panel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}
.side-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.35);
}

/* Focus-visible for keyboard navigation */
.menu-item:focus-visible,
.menu-item-secondary:focus-visible,
.close-btn:focus-visible,
.position-toggle:focus-visible,
.lot-favorite-btn:focus-visible,
.lot-action-btn:focus-visible,
.ad-btn:focus-visible,
.filter-btn:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Fix transition: all performance issues */
.menu-bar {
  transition: top 0.3s ease, left 0.3s ease, right 0.3s ease, bottom 0.3s ease, width 0.3s ease, height 0.3s ease, flex-direction 0.3s ease;
}
.menu-item {
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.menu-item-secondary {
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Z-index scale reference (logical layer order) */
/* 1–100    : map elements */
/* 500      : ad-boundary-layer */
/* 1000     : mouse-position, center-marker-coords */
/* 1001     : coords-panel */
/* 9997     : panel-overlay */
/* 9998     : side-panel */
/* 9999     : menu-bar-secondary */
/* 10000    : menu-bar */
/* 100001   : menu-item tooltip */

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
