/* Directions bottom sheet + buttons (map-search + property-details) */

.directions-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  visibility: hidden;
}
.directions-sheet.open {
  pointer-events: auto;
  visibility: visible;
}
.directions-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.directions-sheet.open .directions-sheet-backdrop {
  opacity: 1;
}
.directions-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(72vh, 560px);
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.28s ease;
  padding-bottom: env(safe-area-inset-bottom);
}
.directions-sheet.open .directions-sheet-panel {
  transform: translateY(0);
}

.directions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.directions-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}
.directions-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f1f5f9;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
}
.directions-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.directions-mode {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
}
.directions-mode button {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.directions-mode button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.directions-summary {
  padding: 0 16px 12px;
  flex-shrink: 0;
}
.directions-stats {
  display: flex;
  gap: 16px;
}
.directions-stats span {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.directions-stats strong {
  display: block;
  font-size: 1.05rem;
  color: #0f172a;
}
.directions-stats small {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.directions-loading {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}
.directions-error {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #b91c1c;
}
.directions-muted {
  margin: 0;
  font-size: 0.78rem;
  color: #64748b;
}

.directions-steps {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.directions-steps li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.directions-steps li:last-child {
  border-bottom: none;
}
.steps-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-ins {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #1e293b;
  font-weight: 500;
}
.steps-meta {
  margin: 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.directions-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px 8px;
  border-top: 1px solid #f1f5f9;
}
.directions-google-btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px 16px;
  background: #4285f4;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}
.directions-google-btn:hover {
  filter: brightness(1.05);
}
.directions-clear-btn {
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  color: #64748b;
  cursor: pointer;
}
.directions-clear-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.directions-footnote {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.7rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Property details mini map */
.property-mini-map-wrap {
  margin-bottom: 16px;
}
.property-mini-map {
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border, #e2e8f0);
}
.property-dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.btn-directions-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--primary, #2563eb);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-directions-primary:hover {
  filter: brightness(1.06);
}
.btn-directions-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: var(--primary, #2563eb) !important;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}
.btn-directions-secondary:hover {
  border-color: var(--primary, #2563eb);
  background: #f8fafc;
}
