/* ==========================================================
   LOCATION MODAL — vendors listing (geolocation prompt)
   Replaces the Tailwind utility classes with custom CSS.
   Alpine directives (x-show / x-cloak / @click) stay in the markup.
   ========================================================== */

:root {
    --lm-green:       #059669;  /* emerald-600 */
    --lm-green-dark:  #047857;  /* emerald-700 */
    --lm-green-soft:  #d1fae5;  /* emerald-100 */
    --lm-green-mid:   #10b981;  /* emerald-500 */
    --lm-red:         #f87171;  /* red-400 */
    --lm-ink:         #111827;  /* gray-900 */
    --lm-ink-soft:    #1f2937;  /* gray-800 */
    --lm-body:        #374151;  /* gray-700 */
    --lm-muted:       #6b7280;  /* gray-500 */
    --lm-faint:       #9ca3af;  /* gray-400 */
}

/* ── Overlay ── */
.lm-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
}

/* ── Card ── */
.lm-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 24rem;
    padding: 32px;
    text-align: center;
    font-family: var(--font-body, 'Instrument Sans', sans-serif);
}

.lm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--lm-green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lm-icon svg {
    width: 32px;
    height: 32px;
    color: var(--lm-green);
}

.lm-title {
    font-family: var(--font-heading, 'Sailor', sans-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lm-ink);
    margin: 0 0 8px;
}
.lm-text {
    font-size: 0.875rem;
    color: var(--lm-muted);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── Buttons ── */
.lm-btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--lm-green);
    color: #fff;
    font-weight: 600;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lm-btn-primary:hover { background: var(--lm-green-dark); }

.lm-btn-link {
    display: block;
    width: 100%;
    padding: 4px 0;
    font-size: 0.875rem;
    color: var(--lm-faint);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}
.lm-btn-link:hover { color: var(--lm-muted); }

/* ==========================================================
   STATE PANELS — waiting / denied / declined
   ========================================================== */
.lm-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 80px 0;
    text-align: center;
    font-family: var(--font-body, 'Instrument Sans', sans-serif);
}
.lm-state svg {
    width: 40px;
    height: 40px;
}
.lm-state-icon--green { color: var(--lm-green-mid); }
.lm-state-icon--red   { color: var(--lm-red); }
.lm-state-icon--gray  { color: var(--lm-faint); }

.lm-state-title {
    font-family: var(--font-heading, 'Sailor', sans-serif);
    margin: 0;
    font-weight: 600;
    color: var(--lm-ink-soft);
}
.lm-state-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--lm-muted);
    max-width: 20rem;
    line-height: 1.5;
}
.lm-state-btn {
    margin-top: 12px;
    padding: 8px 24px;
    background: var(--lm-green);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.lm-state-btn:hover { background: var(--lm-green-dark); }

/* Pulsing icon for the "waiting" state */
.lm-pulse { animation: lm-pulse 1.4s ease-in-out infinite; }
@keyframes lm-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}
