/* ==========================================================================
   MARKET YOUR DAYCARE — Cascading Location Picker & Centre Results Styles
   State → City → Suburb cascading picker with live autocomplete & centre feed
   ========================================================================== */

:root {
  --lp-primary: #ff334b;
  --lp-primary-hover: #e0263c;
  --lp-primary-soft: rgba(255, 51, 75, 0.08);
  --lp-primary-border: rgba(255, 51, 75, 0.25);
  --lp-accent-gold: #ffcf00;
  --lp-bg-dark: #0f172a;
  --lp-card-bg: #ffffff;
  --lp-border-subtle: #e2e8f0;
  --lp-border-focus: #ff334b;
  --lp-text-main: #0f172a;
  --lp-text-muted: #64748b;
  --lp-radius: 12px;
  --lp-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --lp-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --lp-shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --lp-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Container & Wrapper */
.location-picker-section {
  background: #ffffff;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border-subtle);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--lp-shadow-sm);
}

.location-picker-header {
  margin-bottom: 1.25rem;
}

.location-picker-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--lp-text-main);
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-picker-header p {
  font-size: 0.9rem;
  color: var(--lp-text-muted);
  margin: 0;
}

/* Cascading Picker Form Grid */
.location-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr auto;
  gap: 1rem;
  align-items: end;
}

@media (max-width: 900px) {
  .location-picker-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .location-picker-grid {
    grid-template-columns: 1fr;
  }
}

/* Input / Field Groups */
.lp-field-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.lp-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text-muted);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lp-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--lp-primary-soft);
  color: var(--lp-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

/* Select & Input Elements */
.lp-select-wrap,
.lp-input-wrap {
  position: relative;
  width: 100%;
}

.lp-select,
.lp-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lp-text-main);
  background: #f8fafc;
  border: 1.5px solid var(--lp-border-subtle);
  border-radius: 10px;
  outline: none;
  transition: var(--lp-transition);
  appearance: none;
  -webkit-appearance: none;
}

.lp-select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.lp-select-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--lp-text-muted);
  pointer-events: none;
  transition: var(--lp-transition);
}

.lp-select:focus,
.lp-input:focus {
  background: #ffffff;
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(255, 51, 75, 0.15);
}

.lp-select:disabled,
.lp-input:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

/* Suburb Autocomplete Suggestions Dropdown */
.lp-autocomplete-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--lp-border-subtle);
  border-radius: 10px;
  box-shadow: var(--lp-shadow-lg);
  max-height: 280px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.lp-autocomplete-panel.is-open {
  display: block;
}

.lp-suggestion-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.lp-suggestion-item:last-child {
  border-bottom: none;
}

.lp-suggestion-item:hover,
.lp-suggestion-item.is-focused {
  background: var(--lp-primary-soft);
}

.lp-suggestion-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lp-suggestion-icon {
  width: 16px;
  height: 16px;
  color: var(--lp-primary);
  flex-shrink: 0;
}

.lp-suggestion-name {
  font-weight: 700;
  color: var(--lp-text-main);
  font-size: 0.95rem;
}

.lp-suggestion-match {
  color: var(--lp-primary);
  text-decoration: underline;
}

.lp-suggestion-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lp-text-muted);
  background: #f1f5f9;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.lp-autocomplete-empty {
  padding: 1rem;
  text-align: center;
  color: var(--lp-text-muted);
  font-size: 0.88rem;
}

.lp-spinner {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 51, 75, 0.2);
  border-top-color: var(--lp-primary);
  border-radius: 50%;
  animation: lpSpin 0.6s linear infinite;
  display: none;
}

.lp-spinner.is-active {
  display: block;
}

@keyframes lpSpin {
  to { transform: translateY(-50%) rotate(360deg); }
}

/* Clear / Search CTA Button */
.lp-search-btn {
  height: 48px;
  padding: 0 1.5rem;
  background: var(--lp-primary);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(255, 51, 75, 0.3);
  transition: var(--lp-transition);
}

.lp-search-btn:hover {
  background: var(--lp-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 51, 75, 0.4);
}

.lp-search-btn:active {
  transform: translateY(0);
}

.lp-search-btn svg {
  width: 18px;
  height: 18px;
}

/* Centre Results Container States */
#centre-results-container {
  margin-top: 1.5rem;
  transition: opacity 0.2s ease;
}

.lp-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem 0;
}

.lp-skeleton-card {
  height: 220px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: lpShimmer 1.5s infinite;
  border-radius: 14px;
}

@keyframes lpShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lp-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.lp-badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
