/* Location Control Component Styles */
:root {
  --brand: #e11d48; /* rose-600 */
  --brand-700: #be123c; /* rose-700 */
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --ring: rgba(225, 29, 72, 0.3);
}

.location-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
}
.location-control:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: #e2e8f0;
}
.location-control:active {
  transform: translateY(1px);
}
.location-control .pin {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.location-control .label-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.location-control .label {
  font-size: 12px;
  color: var(--muted);
}
.location-control .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.location-control .chev {
  color: #94a3b8;
}

/* Popover */
.location-popover {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  width: min(92vw, 360px);
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(2,6,23,0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 50;
}
.location-popover.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.location-popover .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}
.location-popover .content {
  padding: 12px 14px 14px 14px;
  display: grid;
  gap: 10px;
}
.location-popover .field {
  position: relative;
}
.location-popover input[type="text"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px 10px 36px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.location-popover input[type="text"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}
.location-popover .field .icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: #94a3b8;
}
.location-popover .actions {
  display: flex;
  gap: 8px;
}
.location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .05s ease, background .2s ease, border-color .2s ease;
}
.location-btn:hover { background: var(--brand-700); }
.location-btn:active { transform: translateY(1px); }
.location-btn.secondary {
  background: #fff;
  color: var(--text);
  border-color: #e2e8f0;
}

/* Small utility */
.hidden { display: none; }
