/* OpenMap navigation page — matches template cards and spacing */

.openmap-nav-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.openmap-nav-block {
    padding: 1.5rem 1.35rem;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.08));
}

.openmap-nav-block .title {
    color: var(--color-heading-1, #1c1c1c);
}

.openmap-location-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
}

.openmap-location-row input {
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--color-border, #e3e3e3);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-body-1, #5c5c5c);
    background: #fff;
}

.openmap-location-row input:focus {
    outline: none;
    border-color: var(--color-primary, #ba6827);
}

.openmap-locate-btn {
    flex: 0 0 auto;
    min-width: 52px;
    padding-inline: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.openmap-module .store-select {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--color-border, #e3e3e3);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-body-1, #5c5c5c);
    background: #fff;
    cursor: pointer;
}

.openmap-module .store-select:focus {
    outline: none;
    border-color: var(--color-primary, #ba6827);
}

#directionsContainer {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
}

.openmap-module .direction-step {
    padding: 1rem 1.1rem;
    margin-bottom: 0.65rem;
    background: #fff;
    border-radius: 10px;
    border-inline-start: 3px solid var(--color-primary, #ba6827);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.06));
    border-inline-start-width: 3px;
}

.openmap-module .direction-step-number {
    background: var(--color-primary, #ba6827);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.openmap-module .direction-step-content strong {
    color: var(--color-heading-1, #1c1c1c);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.openmap-module .direction-step-content p {
    color: var(--color-body-1, #5c5c5c);
    margin: 0;
    font-size: 0.875rem;
}

.openmap-module .direction-distance {
    color: var(--color-primary, #ba6827);
    font-weight: 600;
    margin-top: 0.35rem;
}

.openmap-module .directions-map,
.openmap-module #mapContainer {
    height: 400px !important;
    width: 100% !important;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
    overflow: hidden;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.openmap-quick-card {
    padding: 1.15rem 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.openmap-quick-card:hover {
    border-color: var(--color-primary, #ba6827);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.openmap-quick-card h4 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: var(--color-heading-1, #1c1c1c);
}

.openmap-quick-card p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--color-body-1, #5c5c5c);
}

.openmap-quick-card .distance {
    font-weight: 600;
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--color-primary, #ba6827);
}

.openmap-module .error-message {
    background: #fef2f2;
    color: #b42318;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    border-inline-start: 3px solid #b42318;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.openmap-module .info-card {
    padding: 1.15rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
    text-align: center;
}

.openmap-module .info-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-body-1, #777);
    margin-bottom: 0.5rem;
}

.openmap-module .info-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-heading-1, #1c1c1c);
}

.openmap-current-pin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-primary, #ba6827);
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.current-location-marker,
.current-position-marker {
    background: transparent !important;
    border: none !important;
}

.openmap-module .pulse-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary, #ba6827);
    border: 3px solid #fff;
    box-shadow: 0 0 0 0 rgba(186, 104, 39, 0.45);
    animation: openmapPulse 2s infinite;
}

@keyframes openmapPulse {
    0% { box-shadow: 0 0 0 0 rgba(186, 104, 39, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(186, 104, 39, 0); }
    100% { box-shadow: 0 0 0 0 rgba(186, 104, 39, 0); }
}

@media (max-width: 575px) {
    .openmap-location-row {
        flex-direction: column;
    }

    .openmap-locate-btn {
        width: 100%;
    }
}
